Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw0pv-0000Dx-Gv for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2013 01:33:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tw0pv-0007cv-1l for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2013 01:33:39 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw0pt-0007cn-Te for pgsql-hackers@postgresql.org; Fri, 18 Jan 2013 01:33:38 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw0ps-0002ap-Mp for pgsql-hackers@postgresql.org; Fri, 18 Jan 2013 01:33:37 +0000 Received: from anarazel.de (p5DDC5C50.dip.t-dialin.net [93.220.92.80]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MZfTi-1Tdvyz37x0-00LfLG; Fri, 18 Jan 2013 02:33:35 +0100 Received: by anarazel.de (Postfix, from userid 1000) id CA61E1C0173; Fri, 18 Jan 2013 02:33:34 +0100 (CET) Date: Fri, 18 Jan 2013 02:33:34 +0100 From: Andres Freund To: Dimitri Fontaine Cc: Tom Lane , Simon Riggs , Robert Haas , Alvaro Herrera , PostgreSQL Hackers Subject: Re: Event Triggers: adding information Message-ID: <20130118013334.GE3074@awork2.anarazel.de> References: <16675.1358454278@sss.pgh.pa.us> <18941.1358462151@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:AgjuVimA7QXfqaS0XumuZoFDSxZTXdEx1Sub9rpl0HP Okyst8V3Bv8O6dgcFIJFdA0y31LULbnhzm1TT1NuRK1JRSNSBp 1W13GP/btA77lCJS0eJSxa82S7V2AYcfHzYmAB+aV26L3SRTZy rzsWlTkYa5fXbXTkTZb63iVemS6dhUEqFD8aSq/6S+/TNl4e52 6krQPRF7UqnyHCCJh4+Azh/wCPDi9+W21ZIWi76Cb9OZBNMoVu GiQj73LWDmr69T+WOzrox9SpMHe7IROsBuF7P7RokFrApchmoK vAPiVJob5urm6Q5FWLPiOBxkSP8CRL1eGBiRBj5YnLY7Ppy3W1 9MZ9NuAoIExrPewqSrwYAjUVEpewlX+oAC3Zem0Gx X-Pg-Spam-Score: -1.9 (-) 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 On 2013-01-17 23:48:23 +0100, Dimitri Fontaine wrote: > Tom Lane writes: > > Alternatively, if you want to get something into 9.3 that has not > > necessarily got a long-term-stable API, I'd be inclined to suggest that > > we forget about a SQL-level event trigger facility for now, and just put > > in some hook call points. It's pretty well established that we're > > willing to change the API seen by hook functions across major releases. > > Or just a hook. That would want to have about the exact same amount of > information as the Event Trigger anyway, so I'm thinking we could maybe > do that the same way as the parsetree exposure? > > Another idea would be yet another GUC, ala allow_system_table_mods, so > that only intrepid users can have at it. Well, as long as the logical > replication use case is covered, I'm done here, so I want to hear from > Simon and Andres on that (and maybe the Slony and Londiste guys, etc), > and from you to triage what is possible and what is crazy. > > TBH this might be the best thing anyway if your long-term goals have to > > do with replication, because it'd be a lot cheaper to get to the point > > where you could write the replication code and see if it all actually > > works. I'm fairly concerned that we might spend many man-months getting > > event triggers with definitions A,B,C into the system, only to find out > > later that what is really needed for logical replication is definitions > > D,E,F. I have no problem requiring C code to use the even data, be it via hooks or via C functions called from event triggers. The problem I have with putting in some hooks is that I doubt that you can find sensible spots with enough information to actually recreate the DDL for a remote system without doing most of the work for command triggers. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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