Re: copy from stdin limits

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: copy from stdin limits
Дата
Msg-id 3554.976211012@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: copy from stdin limits  (Camm Maguire <camm@enhanced.com>)
Список pgsql-hackers
Camm Maguire <camm@enhanced.com> writes:
> OK, I have 4 tables, and a view on a merge of the 4.  I have a trigger
> on insert into table 3, and a trigger on insert into the view, which
> basically just takes the input data, does a few selects on the tables,
> and inserts the appropriate portions of the data into each table as
> necessary.  

> When I copy up to ~ 1000 lines of a file into this view, everything
> goes fine.

I'm a bit startled that COPY to a view works at all ;-).  But it does
look like copy honors triggers, so in principle the above ought to work.

I'll need to see the complete details of the trigger and all the
referenced table declarations --- probably don't need the data, though,
unless the trigger needs to have nonempty tables to start with.
        regards, tom lane


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

Предыдущее
От: Camm Maguire
Дата:
Сообщение: Re: copy from stdin limits
Следующее
От: Randy Jonasz
Дата:
Сообщение: Re: RFC C++ Interface