Re: Command Triggers, patch v11

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Command Triggers, patch v11
Дата
Msg-id 201203162237.38813.andres@anarazel.de
обсуждение исходный текст
Ответ на Re: Command Triggers, patch v11  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Command Triggers, patch v11
Список pgsql-hackers
On Friday, March 16, 2012 10:31:57 PM Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > One more thing I disliked quite a bit was the duplication of the EXECUTE
> > handling. Do you see a way to deduplicate that?
> Yeah, that's what's bugging me, too.  I think a chunk of the problem is
> that you're insisting on having control come back to CreateTableAs()
> to perform the table creation.  I'm thinking that if the table creation
> were to be moved into the tuple receiver's startup routine, we could
> avoid needing to get control back between ExecutorStartup and
> ExecutorRun, and then all that would be required would be to call
> ExecuteQuery with a different DestReceiver.
Hm. I seriously dislike doing that in the receiver. I can't really point out 
why though. Unsurprisingly I like getting the control back to CreateTableAs...

Andres


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Command Triggers, patch v11
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Incorrect assumptions with low LIMITs