Re: truncate trigger for foreign data wrappers - Mailing list pgsql-hackers

From Andres Freund
Subject Re: truncate trigger for foreign data wrappers
Date
Msg-id 20160805180406.hes2hwfh5k4vivxn@alap3.anarazel.de
Whole thread Raw
In response to Re: truncate trigger for foreign data wrappers  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: truncate trigger for foreign data wrappers  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2016-08-05 13:32:18 -0400, Robert Haas wrote:
> I think if we're going to add support utility commands on foreign
> tables, we ought to think about all of the different utility commands
> that someone might want and what exactly we want the behavior to be.

> For example, consider CLUSTER or CREATE INDEX or VACUUM or ANALYZE.
> We might interpret TRUNCATE or CLUSTER as a request to dispatch the
> same request for the remote side, but ANALYZE can't mean that: it has
> to mean gather local statistics.  And what if the other side is not PG
> and supports other operations that we don't have, like OPTIMIZE TABLE
> or DISENGAGE FTL?

That's not really comparable imo - we don't have triggers for those
locally either. For better or worse we've decided that TRUNCATE is more
like DML than DDL.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Pavan Deolasee
Date:
Subject: Re: Heap WARM Tuples - Design Draft
Next
From: Robert Haas
Date:
Subject: Re: truncate trigger for foreign data wrappers