Re: COPY FROM STDIN

Поиск
Список
Период
Сортировка
От Luke Coldiron
Тема Re: COPY FROM STDIN
Дата
Msg-id BAY403-EAS38594712BE01228578461A9C6F60@phx.gbl
обсуждение исходный текст
Ответ на Re: COPY FROM STDIN  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: COPY FROM STDIN  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-general
> On 1/6/16 9:45 PM, Luke Coldiron wrote:
> > In the example above I'm not sure if I can use some sub struct of the
> > SPIPlanPtr and hand it off to the DoCopy function as the CopyStmt or
> > if I need to go about this entirely different. Any advice on the
> > matter would be much appreciated.
>
> I don't know off-hand. I suggest you look at what psql does to implement
\copy (note the \).
> --
> Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX Experts in
Analytics, Data Architecture and PostgreSQL Data in Trouble? Get it in
Treble! http://BlueTreble.com

I took a look at the \copy but as far as I can tell this is using the
frontend (client side) of postgresql and I need to be able to do this on the
backend (server side). I don't see a way with this either to attach to the
connection that called the c function and execute the copy statement. The
DoCopy in commands/copy.h appears to me to be the server side copy command.
And I think I can get it to work if I can figure out how to attach to the
connection of the calling function and pass in the CopyStmt variable.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_upgrade 9.4 -> 9.5 with pg_trgm fails for me
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: pg_upgrade 9.4 -> 9.5 with pg_trgm fails for me