Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay24M-0008RE-TX for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 19:02:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ay24M-0004X5-Cg for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 19:02:46 +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 1ay24L-0004WA-6R for pgsql-hackers@postgresql.org; Wed, 04 May 2016 19:02:45 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay24I-0006Y4-Gp for pgsql-hackers@postgresql.org; Wed, 04 May 2016 19:02:43 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 9F6B35F7A6; Wed, 4 May 2016 15:02:41 -0400 (EDT) Date: Wed, 4 May 2016 15:02:41 -0400 From: Stephen Frost To: Tom Lane 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 Message-ID: <20160504190241.GG10850@tamriel.snowman.net> References: <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> <16963.1462388297@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eE3G5PSxkuQa3+V7" Content-Disposition: inline In-Reply-To: <16963.1462388297@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 15:01:30 up 71 days, 15:54, 21 users, load average: 0.29, 0.16, 0.15 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --eE3G5PSxkuQa3+V7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > * Tom Lane (tgl@sss.pgh.pa.us) wrote: > >> * debugger ability to print variables symbolically >=20 > > 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: >=20 > > (gdb) p tblinfo[i].dobj.dump & ~(DUMP_COMPONENT_COMMENT | > > DUMP_COMPONENT_SECLABEL | DUMP_COMPONENT_USERMAP | DUMP_COMPONENT_ACL) >=20 > > where all the DUMP_COMPONENT items are #define's. >=20 > 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. Ah, yeah, that's true. -g3, unsurprisingly, doesn't help with displaying a random int value using some set of #define's. Thanks! Stephen --eE3G5PSxkuQa3+V7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXKkdRAAoJEO1sijiDR2RVyhEP/0vucw0lfsydbEAE+KzW1iSh 6w6a+flnrWqUUK6YgU9h3TmktQDnv1XU9cQOWim7zEWS5W+k9sG89hKqQL/60CJN eNcdlMjbxhDTueIMFr0YnUZcScqENSY0XoQMt5lpeHgD56pvy8QW7yWklt0gvDs2 FDIsZEXk1pkD6hFI/lM0Ql7BOtN0Lld1quapqDoUFlwCVW32jLqIR+ibAIbmAmBl I3YqvAVKzhWifoDd4y1Tw9Zk1h/AYj8/wIkr+j/XtBrZkKuzC1/rO8YM1b/blREe ZIMtoWedCmrhdF+pa90n3jHh+JTr9/dtTWZ7M4QozrsLioZamIUjJYOG5puCEt0B 64AhsFHZAss42AaQ60GEPO7HJOo7O5srDpjfRBUmcnhPia9i5gsWV43+XsLr+274 Pi1akT2vjtxSWD6IrZ0+6hHlhu8S3PNVvfJqRMI/E5iBBXuMRWq3KKNhfRgGlrdK XcieMmGKQQ2uCaQpCRLB0wCYzgPzb941X26CYB0du3QkjqFCeoa/gk+9NChrY38u bwneaQvN9veollwhy3J6jk+O+qae2ecifcddyVgtu0wrO1jBj0C4MQCIzmGPk7WH IPJc9gduzABafGLXXu3p+qzTqwmJKhKdhYnQJa//vv+cA6WEPwYnmg+zIrotgy3U vwgkQip6/e38YlCptBf+ =lx0j -----END PGP SIGNATURE----- --eE3G5PSxkuQa3+V7--