Executing \i of psql command using libpq library

From: "Edmundo Robles L(dot)" <erobles(at)sensacd(dot)com(dot)mx>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Executing \i of psql command using libpq library
Date: 2011-06-14 15:20:30
Message-ID: 252EE06031407243B058CF7699226E3A01D42A59@mail2.sensacd.com.mx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Morgan Lloyd 2011-06-14 15:23:15 Re: Per-query local timezone
Previous Message Steve Crawford 2011-06-14 15:14:56 Re: Per-query local timezone