Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5d9Z-000160-2j for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2016 18:03:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5d9Y-0004U2-FJ for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2016 18:03:32 +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 1b5d9X-0004Tv-Qq for pgsql-hackers@postgresql.org; Wed, 25 May 2016 18:03:31 +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_2) (envelope-from ) id 1b5d9S-0001DO-T4 for pgsql-hackers@postgresql.org; Wed, 25 May 2016 18:03:30 +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 [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 5B457401700; Wed, 25 May 2016 11:03:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id DDE5A751; Wed, 25 May 2016 14:03:17 -0400 (CLT) Date: Wed, 25 May 2016 14:03:17 -0400 From: Alvaro Herrera To: Nikolay Shaplov Cc: pgsql-hackers@postgresql.org, =?iso-8859-1?Q?Fabr=EDzio?= de Royes Mello Subject: Re: [PROPOSAL] Move all am-related reloption code into src/backend/access/[am-name] and get rid of relopt_kind Message-ID: <20160525180317.GA598084@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2675173.UdFh6OGSxV@nataraj-amd64> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Nikolay Shaplov wrote: > В письме от 25 мая 2016 13:25:38 Вы написали: > > Teodor Sigaev wrote: > > > >This all should me moved behind "access method" abstraction... > > > > > > +1 relopt_kind should be moved in am, at least. Or removed. > > > > Hm, but we have tablespace options too, so I'm not sure that using AM as > > abstraction level is correct. > We will use am for all indexes, and keep all the rest in relopotion.c for > non-indexes. May be divided options catalog into sections one section for each > kind. That makes sense. I can review the patch later. > And as I also would like to use this code for dynamic attoptions later, I > would like to remove relopt_kind at all. Because it spoils live in that case. As I remember, Fabrízio (in CC) had a patch for dynamic reloptions, but there was some problem with it and we dumped it; see https://www.postgresql.org/message-id/CAFcNs+rqCq1H5eXW-cvdti6T-xo2STEkhjREx=OdmAkK5tiOOw@mail.gmail.com for previous discussion. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers