I’m surprised this hasn’t been posted yet. Any interesting tricks that you know about in Postgres? Obscure config options and scaling/perf tricks are particularly welcome.
I’m sure we can beat the 9 comments on the corresponding MySQL thread 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since postgres is a lot more sane than MySQL, there are not that many ‘tricks’ to report on 😉
The manual has some nice performance tips.
A few other performance related things to keep in mind:
Here’s a few things I’ve found useful that aren’t config or performance related per se.
To see what’s currently happening:
Search misc functions:
Find size of database:
Find size of all databases:
Find size of tables and indexes:
Or, to list all tables and indexes (probably easier to make a view of this):
Oh, and you can nest transactions, rollback partial transactions++