RhodiumToad (@RhodiumToad) profile picture

Find me on IRC: #postgresql or #freebsd on https://teapawt.net/t.co/CawJpOqZYw (he/him)

Joined February 2019
Replying to @b0rk @DataRenee
Verbosity and twitter are ... not suited to each other
2
Gotta love "no functional change" commits that actually cause 100% failure in an important use case
1
4
Every time I do anything that involves Linux I find new reasons to hate it.
1
2
4
SELECT 'Happy new year '||name FROM pg_timezone_names WHERE EXTRACT(year FROM now() AT TIME ZONE name) = 2021;
Pop quiz: posix_spawnp(&pid, "foo", ... envp) invokes a program "foo" using a search of the PATH env var. Should it use the value of PATH from the calling process' env, or the value from envp which will become the child's env? (spec at pubs.opengroup.org/onlinepub… )
67%Caller's environ
33%Value from envp
12 votes • Final results
1
2
4
A challenge: what SQL statement contains the longest possible sequence of consecutive keywords? (My best so far has 13 consecutive keywords)
3
3
10
(Note, PostgreSQL accepts a number of cases of indefinite repetition, so I'm limiting this challenge to valid SQL 2016 foundation syntax)
2
Today's fun fact: "Tory" comes from the Irish word for a bandit. Any relevance to modern politics is left as an exercise for the reader
1
1
PSA: When asking for help, show YOUR OWN code / problem description, don't just point to a random forum post and say "I'm having the same problem as this". It makes it impossible to see what simple errors you may have made, or differences between your issue and the post
Wow, @jimmy_wales blocked me, for pointing out the transparency problems with his social media site.
8
Another SQL style tip: always a space before the paren in constructs like "OVER (", "FILTER (", etc. Avoid making things look like function calls when they're not.
3
15
SQL style tip: treat "SELECT DISTINCT" as one keyword that happens to have a space in it. Never put a newline before DISTINCT, and never put an open paren directly after it. When using COUNT(DISTINCT ...), if you absolutely need a paren, then always have a space before it.
2
11
PSA: The error message is the part that starts with "ERROR:". Any DETAIL: or HINT: that follows may be informative, but it is NOT the error message. ALWAYS READ THE ERROR MESSAGE.
3
9
So now I'm curious: to the two people who voted to keep postfix operators in my poll: why? Do you have a use case or an example of existing usage?
Quick poll: should @PostgreSQL remove support for postfix operators in expressions, or keep them? Their existence makes parsing a lot harder.
94%Yes, remove them
6%No, keep them
31 votes • Final results
2
1
Github language statistics never cease to baffle me. Hundreds of lines of SQL and a 3-line .dir-locals.el, and it says the repo is 100% Emacs-Lisp.
2
1
Also it insists on labelling .h files as being C++ or Objective-C (rather than the C that they actually are) regardless of what I put in .gitattributes.
1
I will probably regret signing up for this thing.
3
13