Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jillyboel
9 months ago
|
parent
|
context
|
favorite
| on:
What I wish someone told me about Postgres
It's more about queries like (dummy example)
RETURN CASE WHEN a = 1 THEN 1 ELSE 2 END;
where it insists on aligning WHEN past CASE. I think it would be perfectly reasonable to indent WHEN and ELSE 4 spaces less, for example. Similar things happen with nested conditions like (a or (b and c)) all getting pushed to the right
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: