How to find table creation time?

I had a look through the pg_* tables, and I couldn’t find any creation times in there. It’s possible to locate the table files, but then on Linux you can’t get file creation time. So I think the answer is that you can only find this information on Windows, using the following steps: get the … Read more

Time zone names with identical properties yield different result when applied to timestamp

Right after I posted this, I ran another query to check on a suspicion: SELECT * FROM pg_timezone_abbrevs WHERE abbrev IN (‘CEST’, ‘CET’); abbrev | utc_offset | is_dst ——–+————+——– CEST | 02:00:00 | t CET | 01:00:00 | f As it turns out, there is also a time zone abbreviation named CET (which makes sense, … Read more

How to increase the max connections in postgres?

Just increasing max_connections is bad idea. You need to increase shared_buffers and kernel.shmmax as well. Considerations max_connections determines the maximum number of concurrent connections to the database server. The default is typically 100 connections. Before increasing your connection count you might need to scale up your deployment. But before that, you should consider whether you … Read more