by bananaoomarang on 5/22/21, 3:47 PM with 245 comments
by e1g on 5/22/21, 7:40 PM
UPDATE table SET some_jsonb_column['person']['bio']['age'] = '99';
[0] https://erthalion.info/2021/03/03/subscripting/by matthewbauer on 5/22/21, 5:02 PM
Do any other entrenched software projects come to mind? The only thing comparable I can think of are Git and Linux.
by eikenberry on 5/22/21, 7:59 PM
Last time I was responsible for setting up a HA Postgres cluster it was a garbage fire, but that was nearly 10 years ago now. I ask every so often to see if it has improved and each time, so far, the answer has been no.
by gigatexal on 5/22/21, 5:27 PM
And 200+ other improvements in the Postgres 14 release!
These are just some of the many improvements in the new Postgres release. You can find more on what's new in the release notes, such as:
The new predefined roles pg_read_all_data/pg_write_all_data give global read or write access
Automatic cancellation of long-running queries if the client disconnects
Vacuum now skips index vacuuming when the number of removable index entries is insignificant
Per-index information is now included in autovacuum logging output
Partitions can now be detached in a non-blocking manner with ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY
the killing of queries when the client disconnects is really nice imo -- the others are great tooby andrewstuart on 5/22/21, 8:46 PM
I see no mention of addressing transaction id wraparound, but these are in the release notes:
Cause vacuum operations to be aggressive if the table is near xid or multixact wraparound (Masahiko Sawada, Peter Geoghegan)
This is controlled by vacuum_failsafe_age and vacuum_multixact_failsafe_age.
Increase warning time and hard limit before transaction id and multi-transaction wraparound (Noah Misch)
This should reduce the possibility of failures that occur without having issued warnings about wraparound.
by efxhoy on 5/22/21, 6:04 PM
Sweet! I often screw up a query and need to cancel it with
pg_cancel_backend(pid)
because Ctrl-C rarely works. With this I can just ragequit and reconnect. Sweet!by bredren on 5/22/21, 7:49 PM
Episode website: https://www.dataengineeringpodcast.com/postgresql-data-wareh...
Direct: (apple) https://podcasts.apple.com/us/podcast/data-engineering-podca...
by edoceo on 5/22/21, 4:42 PM
by wiradikusuma on 5/22/21, 4:59 PM
by Waterluvian on 5/22/21, 5:26 PM
If I have a Django + PG query that takes 1 second and I want to deeply inspect the breakdown of that entire second, where might I begin reading to learn what tools to use and how?
by rargulati on 5/22/21, 6:58 PM
by arunitc on 5/23/21, 6:19 AM
I know this is not an optimized SQL. But this takes about 5 seconds in Postgre while the same command runs in milliseconds in MSSQL Server. The APCRoleTableColumn has only about 5000 records. The above query is to delete all columns not present in the schema from the APCRoleTableColumn table
I used to be a heavy MSSQL user. I do love Postgre and have switched over to using it in all my projects and am not looking back. I wish it was as performant as MSSQL. This is just one example. I can list a number of others too.
by lmarcos on 5/22/21, 8:19 PM
by hmmokidk on 5/22/21, 6:44 PM
by deedubaya on 5/22/21, 5:54 PM
by dragonwriter on 5/22/21, 7:22 PM
by jabl on 5/22/21, 5:54 PM