Re: replicating DROP commands across servers

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: "Brightwell, Adam" <adam(dot)brightwell(at)crunchydatasolutions(dot)com>, "Andres Freund" <andres(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: replicating DROP commands across servers
Date: 2014-10-03 17:15:00
Message-ID: 542ED994.6000002@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 10/03/2014 08:08 PM, Stephen Frost wrote:
> Alvaro,
>
> * Alvaro Herrera (alvherre(at)2ndquadrant(dot)com) wrote:
>> There are three fixmes in the code. One can be handled by just removing
>> the line; we don't really care about duplicating 10 lines of boilerplate
>> code. The other two mean missing support for domain constraints and for
>> default ACLs. Is there absolutely no feedback to be had on the
>> mechanism used by the patch?
>>
>> Since the patch has had good feedback and no further comments arise, I
>> can just implement support for those two missing object types and push,
>> and everybody will be happy. Right?
>
> In general, I'd say yes, but I'll take a look at the patch now and
> provide feedback in a couple hours anyway.

Thanks Stephen!

I had a very brief look at the docs, and these extra outputs from
pg_event_trigger_dropped_objects caught my eye:

> + <row>
> + <entry><literal>address_names</literal></entry>
> + <entry><type>text[]</type></entry>
> + <entry>
> + An array that, together with <literal>address_args</literal>,
> + can be used by the C-language function getObjectAddress() to
> + recreate the object address in a remote server containing a similar object.
> + </entry>
> + </row>
> + <row>
> + <entry><literal>address_args</literal></entry>
> + <entry><type>text[]</type></entry>
> + <entry>
> + See <literal>address_names</literal> above.
> + </entry>
> + </row>

I couldn't find a function called getObjectAddress anywhere. Typo?

Also, is providing a C-language function the best we can do? The rest of
the information returned by pg_event_trigger_dropped_objects is usable
from any language.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-10-03 17:51:53 Re: Proposal for updating src/timezone
Previous Message Robert Haas 2014-10-03 17:09:28 Re: test_shm_mq failing on anole (was: Sending out a request for more buildfarm animals?)