This is the function you need if you are running into the infamous "must be superuser to COPY to or from a file" error from postgres.
![]() |
|
||||||||||
|
pg_put_lineОписаниеbool pg_put_line ( string data )bool pg_put_line ( resource connection, string data ) pg_put_line() sends a NULL-terminated string to the PostgreSQL backend server. This is needed in conjunction with PostgreSQL's COPY FROM command. COPY is a high-speed data loading interface supported by PostgreSQL. Data is passed in without being parsed, and in a single transaction. An alternative to using raw pg_put_line() commands is to use pg_copy_from(). This is a far simpler interface.
Список параметров
Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. Примеры
pg_put_line
kurt at nospam dot milliganshome dot net
22-Aug-2005 09:08
This is the function you need if you are running into the infamous "must be superuser to COPY to or from a file" error from postgres.
|