From: | "Gordon A(dot) Runkle" <gar(at)no-spam-integrated-dynamics(dot)com> |
---|---|
To: | pgsql-docs(at)postgresql(dot)org |
Subject: | Re: COPY Question |
Date: | 2001-04-04 22:11:13 |
Message-ID: | 9ag5q6$tuk$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
In article <3ACB8E7F(dot)C12A50CA(at)intrinsity(dot)com>, "John Coers"
<coers(at)intrinsity(dot)com> wrote:
> Hi,
>
> I am writing a C program that accesses a 7.0.3 database using libpq. I
> would like to be able to do a fprintf through some file pointer or pipe
> TO the database via a PQexec call of COPY. I have been unable to figure
> out if this is possible. I see where I can do this via stdin, but I
> don't want the user to make the entry, I want the executable to do it
> and still enjoy the performance of the COPY command.
If you're on UNIX, look at the popen(3) call.
Gordon.
--
It doesn't get any easier, you just go faster.
-- Greg LeMond
From | Date | Subject | |
---|---|---|---|
Next Message | Jukka Vaananen | 2001-04-05 13:43:42 | wrong information in Inheritance-chapter? |
Previous Message | John Coers | 2001-04-04 21:13:35 | COPY Question |
From | Date | Subject | |
---|---|---|---|
Next Message | KS | 2001-04-04 22:25:29 | RE: [BUGS] Loosing files after backend crash |
Previous Message | Thomas Lockhart | 2001-04-04 21:41:49 | Re: All's quiet ... RC3 packaging ... |