Re: HEAPDEBUGALL is broken

2020-04-24 Thread Michael Paquier
On Wed, Apr 22, 2020 at 08:44:18PM -0700, Andres Freund wrote: > On 2020-04-19 09:37:08 -0400, Tom Lane wrote: >> +1 for removing both. There are a lot of such debug "features" >> in the code, and few of them are worth anything IME. > > Belatedly: +many +1. -- Michael signature.asc Description

Re: HEAPDEBUGALL is broken

2020-04-23 Thread Tom Lane
I wrote: > Looking at this, I'm tempted to nuke ACLDEBUG as well, which > is the only remaining undocumented symbol in pg_config_manual.h. > The code it controls looks equally forlorn and not-useful-as-is. Did that, too. regards, tom lane

Re: HEAPDEBUGALL is broken

2020-04-23 Thread Tom Lane
I wrote: > Alexander Lakhin writes: >> So I would just remove this debug macro. The proposed patch is attached. > I didn't review this in close detail, but I think it's a good idea. I checked this more closely and pushed it. regards, tom lane

Re: HEAPDEBUGALL is broken

2020-04-22 Thread Andres Freund
On 2020-04-19 09:37:08 -0400, Tom Lane wrote: > Peter Eisentraut writes: > > The HEAPDEBUGALL define has been broken since PG12 due to tableam > > changes. Should we just remove this? It doesn't look very useful. > > It's been around since Postgres95. > > If we opt for removing: PG12 added an

Re: HEAPDEBUGALL is broken

2020-04-22 Thread Tom Lane
Alexander Lakhin writes: > 21.04.2020 21:01, Peter Eisentraut wrote: >> Do you have a proposed patch? > As this is broken at least since the invention of the generational > allocator (2017-11-23, a4ccc1ce), I believe than no one uses this (and > slab is broken too). Nonetheless, HAVE_ALLOCINFO in

Re: HEAPDEBUGALL is broken

2020-04-22 Thread Tom Lane
Peter Eisentraut writes: > On 2020-04-21 20:27, Tom Lane wrote: >> I don't see a commit? > pushed now Looking at this, I'm tempted to nuke ACLDEBUG as well, which is the only remaining undocumented symbol in pg_config_manual.h. The code it controls looks equally forlorn and not-useful-as-is.

Re: HEAPDEBUGALL is broken

2020-04-22 Thread Peter Eisentraut
On 2020-04-21 20:27, Tom Lane wrote: Peter Eisentraut writes: On 2020-04-19 15:37, Tom Lane wrote: +1 for removing both. There are a lot of such debug "features" in the code, and few of them are worth anything IME. removed I don't see a commit? pushed now -- Peter Eisentraut

Re: HEAPDEBUGALL is broken

2020-04-21 Thread Alexander Lakhin
21.04.2020 21:01, Peter Eisentraut wrote: > On 2020-04-19 22:00, Alexander Lakhin wrote: >> To the point, I've tried to use HAVE_ALLOCINFO on master today and it >> failed too: > > Do you have a proposed patch? > As this is broken at least since the invention of the generational allocator (2017-11-

Re: HEAPDEBUGALL is broken

2020-04-21 Thread Tom Lane
Peter Eisentraut writes: > On 2020-04-19 15:37, Tom Lane wrote: >> +1 for removing both. There are a lot of such debug "features" >> in the code, and few of them are worth anything IME. > removed I don't see a commit? regards, tom lane

Re: HEAPDEBUGALL is broken

2020-04-21 Thread Peter Eisentraut
On 2020-04-19 15:37, Tom Lane wrote: Peter Eisentraut writes: The HEAPDEBUGALL define has been broken since PG12 due to tableam changes. Should we just remove this? It doesn't look very useful. It's been around since Postgres95. If we opt for removing: PG12 added an analogous HEAPAMSLOTDEBUGA

Re: HEAPDEBUGALL is broken

2020-04-21 Thread Peter Eisentraut
On 2020-04-19 22:00, Alexander Lakhin wrote: To the point, I've tried to use HAVE_ALLOCINFO on master today and it failed too: $ CPPFLAGS="-DHAVE_ALLOCINFO" ./configure --enable-tap-tests --enable-debug --enable-cassert  >/dev/null && make -j16 >/dev/null generation.c: In function ‘GenerationAl

Re: HEAPDEBUGALL is broken

2020-04-19 Thread Alexander Lakhin
Hello hackers, 19.04.2020 13:37, Tom Lane wrote: > > Peter Eisentraut writes: >> The HEAPDEBUGALL define has been broken since PG12 due to tableam >> changes.  Should we just remove this?  It doesn't look very useful. >> It's been around since Postgres95. >> If we opt for removing: PG12 added an a

Re: HEAPDEBUGALL is broken

2020-04-19 Thread Tom Lane
Peter Eisentraut writes: > The HEAPDEBUGALL define has been broken since PG12 due to tableam > changes. Should we just remove this? It doesn't look very useful. > It's been around since Postgres95. > If we opt for removing: PG12 added an analogous HEAPAMSLOTDEBUGALL > (which still compiles co

HEAPDEBUGALL is broken

2020-04-19 Thread Peter Eisentraut
The HEAPDEBUGALL define has been broken since PG12 due to tableam changes. Should we just remove this? It doesn't look very useful. It's been around since Postgres95. If we opt for removing: PG12 added an analogous HEAPAMSLOTDEBUGALL (which still compiles correctly). Would we want to keep t