Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aLtoH-00037A-Dq for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jan 2016 14:32:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aLtoG-0006rt-Jr for pgsql-docs@arkaria.postgresql.org; Wed, 20 Jan 2016 14:32:32 +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) (envelope-from ) id 1aLcfp-0007hq-Qv for pgsql-docs@postgresql.org; Tue, 19 Jan 2016 20:14:41 +0000 Received: from smtp5-g21.free.fr ([212.27.42.5]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aLcfn-0007TK-0y for pgsql-docs@postgresql.org; Tue, 19 Jan 2016 20:14:40 +0000 Received: from [192.168.1.3] (unknown [82.233.212.24]) by smtp5-g21.free.fr (Postfix) with ESMTP id 1959CD48065; Tue, 19 Jan 2016 21:13:02 +0100 (CET) Subject: Re: pg_extension_config_dump() function and sequences To: Michael Paquier References: <568C27BD.8030402@free.fr> Cc: pgsql-docs@postgresql.org From: Philippe BEAUDOIN Message-ID: <569E992B.20606@free.fr> Date: Tue, 19 Jan 2016 21:14:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Le 18/01/2016 07:10, Michael Paquier a écrit : > On Wed, Jan 6, 2016 at 5:29 AM, Philippe BEAUDOIN wrote: >> The page "Packaging Related Objects into an Extension" has a third chapter >> dealing with "Extension Configuration Tables". A final paragraph would be >> useful to explain that: >> >> The pg_extension_config_dump() function can also register sequences, so that >> the current properties of the registered sequences are saved by pg_dump and >> later restored. The function can support sequences either explicitely >> created with an ALTER SEQUENCE statement or implicitely created when a table >> contains SERIAL or BIGSERIAL columns. Note that the sequences associated to >> SERIAL or BIGSERIAL columns of a configuration table need to be registered >> using the pg_extension_config_dump() function if one wants to restore the >> properties they had at pg_dump time. > Instead of a single paragraph, perhaps we could make things more > generic like in the attached? It looks much better, indeed. Philippe. -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs