Re: [GENERAL] Executing \i of psql command using libpq library

2011-06-14 Thread Josh Kupershmidt
On Tue, Jun 14, 2011 at 11:51 AM, Tom Lane wrote: > "Edmundo Robles L." writes: >> How can i get the same behavior of psql -c "\\i './a_lot_of_sentences'" bd >> user, using the libpq library??? > > libpq does not contain any such behavior, so you can't. You can take a look at process_file() in

Re: [GENERAL] Executing \i of psql command using libpq library

2011-06-14 Thread Tom Lane
"Edmundo Robles L." writes: > How can i get the same behavior of psql -c "\\i './a_lot_of_sentences'" bd > user, using the libpq library??? libpq does not contain any such behavior, so you can't. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@p

[GENERAL] Executing \i of psql command using libpq library

2011-06-14 Thread Edmundo Robles L.
Hi! How can i get the same behavior of psql -c "\\i './a_lot_of_sentences'" bd user, using the libpq library??? i tried Pqexec(pgconn,"\\i './a_lot_of_sentences'") but didn't work. :( -- SENSA Control Digital. Ing. Edmundo Robles Lopez. Analista Programador. -- Sent via pgsql-gener