From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Barry Lind <barry(at)xythos(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Performance problem with large insert statements |
Date: | 2001-12-04 04:55:05 |
Message-ID: | 26632.1007441705@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Barry Lind <barry(at)xythos(dot)com> writes:
> It seems to me that the server has all the functionality to do this,
> because plpgsql supports it in 7.2. It just isn't can't be done from
> the client.
True. Basically it's a shortcoming in the FE/BE protocol. There's
some other work that'd have to be done, but extending the protocol
would be the main bit.
> I have been contemplating creating some SPI functions that could be
> called from the client that would implement this type of functionality
> and then enhancing the JDBC driver to use them instead of the regular
> query execution of the FE/BE protocol.
Interesting as a proof-of-concept hack, but I'd sure not want to see
it shipped as a production solution. For one thing, the existing
fastpath protocol is itself too broken to encourage more widespread
use of. (See the various comments in fastpath.c.)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Keith Gray | 2001-12-04 05:16:36 | Re: creating a primary key |
Previous Message | Barry Lind | 2001-12-04 04:31:35 | Re: Performance problem with large insert statements |