From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Thom Brown <thom@linux.com>
Cc: Abhijit Menon-Sen <ams@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
Date: Wed, 04 May 2016 14:58:17 -0400
Message-ID: <16963.1462388297@sss.pgh.pa.us> (raw)
In-Reply-To: <20160504174437.GC10850@tamriel.snowman.net>
References: <alpine.DEB.2.10.1605022146390.927@sto>
<20160502203634.hmjgdumfgqrldo6n@alap3.anarazel.de>
<alpine.DEB.2.10.1605022346490.927@sto>
<20160502221419.shvm4vuhi4jh5hoe@alap3.anarazel.de>
<alpine.DEB.2.10.1605030712070.927@sto>
<20160503234810.vzbxwxq4jincgdng@alap3.anarazel.de>
<alpine.DEB.2.10.1605040727090.27782@sto>
<6502.1462373742@sss.pgh.pa.us>
<alpine.DEB.2.10.1605041750420.30701@sto>
<13345.1462383078@sss.pgh.pa.us>
<20160504174437.GC10850@tamriel.snowman.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Stephen Frost <sfrost@snowman.net> writes:
> * Tom Lane (tgl@sss.pgh.pa.us) wrote:
>> * debugger ability to print variables symbolically
> I might be misunderstanding what you're getting at here, but if you want
> to be able to use #define'd values using their name, you can get that by
> compiling with -g3. With -g3 and gdb, you can do things like:
> (gdb) p tblinfo[i].dobj.dump & ~(DUMP_COMPONENT_COMMENT |
> DUMP_COMPONENT_SECLABEL | DUMP_COMPONENT_USERMAP | DUMP_COMPONENT_ACL)
> where all the DUMP_COMPONENT items are #define's.
Yes, but if you just do "p tblinfo[i].dobj.dump", you're only going to get
a number, right? The value-added for an enum type is that the debugger
knows which symbol to substitute for a numeric value when printing. But
that stops working if what's in the variable is some OR of the values the
debugger knows about.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sfrost@snowman.net, coelho@cri.ensmp.fr, andres@anarazel.de, robertmhaas@gmail.com, thom@linux.com, ams@2ndquadrant.com, michael.paquier@gmail.com, kommi.haribabu@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions
In-Reply-To: <16963.1462388297@sss.pgh.pa.us>
References: <alpine.DEB.2.10.1605022146390.927@sto> <20160502203634.hmjgdumfgqrldo6n@alap3.anarazel.de> <alpine.DEB.2.10.1605022346490.927@sto> <20160502221419.shvm4vuhi4jh5hoe@alap3.anarazel.de> <alpine.DEB.2.10.1605030712070.927@sto> <20160503234810.vzbxwxq4jincgdng@alap3.anarazel.de> <alpine.DEB.2.10.1605040727090.27782@sto> <6502.1462373742@sss.pgh.pa.us> <alpine.DEB.2.10.1605041750420.30701@sto> <13345.1462383078@sss.pgh.pa.us> <20160504174437.GC10850@tamriel.snowman.net> <16963.1462388297@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox