Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHl7z-00083q-34 for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jul 2015 03:55:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHl7y-0002va-LS for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jul 2015 03:55:30 +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) (envelope-from ) id 1ZHl7w-0002v7-UA; Wed, 22 Jul 2015 03:55:28 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZHl7r-0002mj-4c; Wed, 22 Jul 2015 03:55:27 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [193.86.243.7]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id E630F400731; Tue, 21 Jul 2015 20:55:15 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E73CC71E; Wed, 22 Jul 2015 05:55:13 +0200 (CEST) Date: Wed, 22 Jul 2015 05:55:13 +0200 From: Alvaro Herrera To: Jaimin Pan Cc: Tom Lane , Robert Haas , Jim Nasby , Michael Paquier , "pgsql-hackers@postgresql.org" , pgsql-bugs@postgresql.org Subject: Re: [HACKERS] object_classes array is broken, again Message-ID: <20150722035513.GI5596@postgresql.org> References: <31003.1437414528@sss.pgh.pa.us> <29788.1437411581@sss.pgh.pa.us> <20150721113839.GD5596@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jaimin Pan wrote: > Hi all, > > How about this patch. I believe it will never missing someone and be > detected while compiling. Hmm, yeah this looks like something that's worth considering going forward. I can't think of any reason not to do this. Perhaps we can write getObjectClass using this, too. The new file has a wrong comment above the list, copy-pasted from rmgrlist.h. I've always wondered about unifying OCLASS with OBJECT, but that's probably a completely independent topic. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs