Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axyDV-0003LM-7E for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 14:55:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axyDU-0002Vh-Py for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 14:55:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axyDS-0002RV-MQ for pgsql-hackers@postgresql.org; Wed, 04 May 2016 14:55:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axyDQ-0001lR-MH for pgsql-hackers@postgresql.org; Wed, 04 May 2016 14:55:54 +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 u44EtgYw006503; Wed, 4 May 2016 10:55:42 -0400 From: Tom Lane To: Fabien COELHO cc: 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: References: <20160429235837.b63wkjw4dduf56wt@alap3.anarazel.de> <20160502164111.cpupbbkab6ik7wwd@alap3.anarazel.de> <20160502165438.yu6inlsyv4babyie@alap3.anarazel.de> <20160502203634.hmjgdumfgqrldo6n@alap3.anarazel.de> <20160502221419.shvm4vuhi4jh5hoe@alap3.anarazel.de> <20160503234810.vzbxwxq4jincgdng@alap3.anarazel.de> Comments: In-reply-to Fabien COELHO message dated "Wed, 04 May 2016 07:46:42 +0200" Date: Wed, 04 May 2016 10:55:42 -0400 Message-ID: <6502.1462373742@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 Fabien COELHO writes: >> There's not really a point in using an enum if you use neither the type >> (which you shouldn't because if you or the bitmask value you have types >> outside the range of the enum), nor the autogenerated numbers. > I do not think that there is such a constraint in C, you can use the enum > bitfield type, so you should. I think you are failing to understand Andres' point. If you're going to OR together some bits, the result is no longer a member of the enum type, and the advantages that an enum would have immediately turn into disadvantages. 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