Re: Can I make direct calls to PostgreSQL server?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roy Souther <roy(at)silicontao(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can I make direct calls to PostgreSQL server?
Date: 2001-03-14 22:46:41
Message-ID: 9871.984610001@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roy Souther <roy(at)silicontao(dot)com> writes:
> Can I make direct calls to PostgreSQL server? I have a lot of data to post to
> the local PostgreSQL server. I am wondering if I can connect directly to it
> to post data so I can by pass the extra layers of
> command -> SQL text string -> port -> SQL interpreter -> internal DB command
> I would like to go
> command -> lib function call -> internal DB command

You could issue a COPY FROM STDIN command and then send your data in
COPY format. This assumes that you are setting all the columns
explicitly (COPY doesn't supply defaults for omitted columns, the way
INSERT can) but it saves an awful lot of overhead.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard H 2001-03-14 22:51:24 Re: [Q] post-crash behaviour
Previous Message keith 2001-03-14 22:35:22 Fw: Fw: Please Help