Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay20D-0008DY-3L for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 18:58:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ay20C-0002sZ-Ls for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 18:58:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ay20B-0002ri-Gd for pgsql-hackers@postgresql.org; Wed, 04 May 2016 18:58:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ay208-0006RO-Uq for pgsql-hackers@postgresql.org; Wed, 04 May 2016 18:58:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u44IwH66016964; Wed, 4 May 2016 14:58:17 -0400 From: Tom Lane To: Stephen Frost cc: Fabien COELHO , Andres Freund , Robert Haas , Thom Brown , Abhijit Menon-Sen , Michael Paquier , Haribabu Kommi , "pgsql-hackers@postgresql.org" Subject: Re: [BUGS] Breakage with VACUUM ANALYSE + partitions In-reply-to: <20160504174437.GC10850@tamriel.snowman.net> References: <20160502203634.hmjgdumfgqrldo6n@alap3.anarazel.de> <20160502221419.shvm4vuhi4jh5hoe@alap3.anarazel.de> <20160503234810.vzbxwxq4jincgdng@alap3.anarazel.de> <6502.1462373742@sss.pgh.pa.us> <13345.1462383078@sss.pgh.pa.us> <20160504174437.GC10850@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Wed, 04 May 2016 13:44:38 -0400" Date: Wed, 04 May 2016 14:58:17 -0400 Message-ID: <16963.1462388297@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost 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