TIL · postgres
- REPLICA IDENTITY on a partitioned table doesn't cascadeALTER on the parent looks like it configured CDC, but the leaf partition is what counts.
- docker exec -t injects CR into your pg_dump-t allocates a TTY and turns \n into \r\n across the whole dump.
- Postgres LATERAL join for top-N per groupGet the N most recent rows of each group without a window function.