Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw1n9-0003vj-92 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2013 02:34:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tw1n8-0005S2-Cy for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2013 02:34:50 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw1n7-0005Rx-Br for pgsql-hackers@postgresql.org; Fri, 18 Jan 2013 02:34:49 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tw1n4-0008Vb-Ca for pgsql-hackers@postgresql.org; Fri, 18 Jan 2013 02:34:48 +0000 Received: from anarazel.de (p5DDC5C50.dip.t-dialin.net [93.220.92.80]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MW7OX-1TPKdT1brN-00XBkS; Fri, 18 Jan 2013 03:34:38 +0100 Received: by anarazel.de (Postfix, from userid 1000) id A1E1D1C0173; Fri, 18 Jan 2013 03:34:37 +0100 (CET) Date: Fri, 18 Jan 2013 03:34:37 +0100 From: Andres Freund To: Craig Ringer Cc: Dimitri Fontaine , Tom Lane , Simon Riggs , Robert Haas , Alvaro Herrera , PostgreSQL Hackers Subject: Re: Event Triggers: adding information Message-ID: <20130118023437.GH3074@awork2.anarazel.de> References: <16675.1358454278@sss.pgh.pa.us> <18941.1358462151@sss.pgh.pa.us> <20130118013334.GE3074@awork2.anarazel.de> <50F8B400.1090701@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50F8B400.1090701@2ndQuadrant.com> X-Provags-ID: V02:K0:5SQ2KxZWLoukg/BsNraOZ2PF1LxgKpPO2anGcJcOmkc Wn0c4/P/KxRA1eazd14C5EOpwQjOVV7YN8beu45W+3jNesZNLn c6bJxWwsh33MgD6q1yZyrwtKqJM+nmOuEZpMs5q8lqczBttvqt 9iPgjCFCRqn2ikVixqoNluMbs1kfTkb124XWCnMux+Ey0Pdz7h wl/fXlXawJjvMWMlARCU2wWsiRfEA9RRhxxeBYs7K4wE8/UkoE hcR1j6yLqdlnelR1mwAXcgMP5R5X3cutrgI9sN3bKGHEz3F1Sk dc20884wjhzru28LJpZyaLG/3IHJhEUiiDGLTiW4IBwG4U27F/ dpyIJiSkre3rCULmivRkB/GtvH/b0FDAbAv3fvOHv 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-18 10:31:28 +0800, Craig Ringer wrote: > On 01/18/2013 09:33 AM, Andres Freund wrote: > > 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. > > Is that so much of a problem if it's OK to break it between major > versions? Maybe require compilation with -DPG_NON_FORWARD_COMPATIBLE to > make the hooks visible in the headers, so nobody can claim they didn't know? I can't follow the connection between what you quote from my mail and what you are saying ;) The problem I see is providing enough information to the hooks, not cross version compatibility. If we go the hook route I don't have the slightest problem of breaking them in the next releases. 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