Re: What have I done!?!?!? :-)

2022-04-06 Thread Lionel Bouton
ld I check for that and how would I turn them back on?  Or am I way off in the weeds? I'd say the later : in your case I would use a NULL parent_id for root(s). Your way leads you to bend PostgreSQL until its back brakes. Best regards, -- Lionel Bouton gérant de JTEK SARL https://www.linkedin.com/in/lionelbouton/

Re: AWS forcing PG upgrade from v9.6 a disaster

2021-05-29 Thread Lionel Bouton
alue distribution looks like for a column and why using an index for conditions involving it is a better solution. The last time I had to use this setting to solve this kind of problem I ended with : default_statistics_target = 500 But obviously the value suited to your case could be different (I'd increase it until the planner uses the correct index). Note that increasing it increases the costs of maintaining statistics (so you don't want to increase this by several orders of magnitude blindly) but the default value seems fairly conservative to me. For reference and more fine-tuned settings using per table statistics configuration and multi-column statistics for complex situations, see : - https://www.postgresql.org/docs/13/runtime-config-query.html - https://www.postgresql.org/docs/13/planner-stats.html -- Lionel Bouton gérant de JTEK SARL https://www.linkedin.com/in/lionelbouton/

Re: PostgreSQL occasionally unable to rename WAL files (NTFS)

2021-02-11 Thread Lionel Bouton
xample some years ago I've seen what looked like a race condition involving rename for MySQL on Windows that could not be fixed by disabling the antivirus but could by uninstalling it completely. You might want to uninstall the antivirus temporarily to check this. Best regards, -- Lionel Bouton gérant de JTEK SARL https://www.linkedin.com/in/lionelbouton/

Reconstructing transaction content after the fact

2020-09-02 Thread Lionel Bouton
nism) ? If positive is there a way to configure the approximate time during which these values can be recovered ? Is there a way to access these values by connecting to a PostgreSQL server instead of analyzing in-memory or on-disk data ? Best regards, -- Lionel Bouton gérant de JTEK SARL https://www.linkedin.com/in/lionelbouton/