Re: [BUGS] BUG #1830: Non-super-user must be able to copy from a - Mailing list pgsql-general

From Bernard
Subject Re: [BUGS] BUG #1830: Non-super-user must be able to copy from a
Date
Msg-id t26ag1lr0cnv13bpg04k6sbpe2nkbamct5@4ax.com
Whole thread Raw
In response to Re: [BUGS] BUG #1830: Non-super-user must be able to copy from a  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: [BUGS] BUG #1830: Non-super-user must be able to copy from a  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-general
Oliver and interested list members:

Thanks for the related information.

The majority of JDBC users trying to bulk load tables would not want
to send the data through their connection. This connection is designed
to send commands and to transfer only as much data as necessary and as
little as possible.

In other words, COPY, and its corresponding commands in other datbase
engines are designed to transfer data using the fastest possible
method, which is typically to and from files.

For the majority JDBC users, there is no real need for a STDIN/STDOUT
option because they can always write to a file.

The need is only created by the limitations of the Postgres COPY
command.

I can't see why a workaround should be developed instead of or before
fixing the COPY command.

It works in other DB engines.


Regards

Bernard




On Fri, 19 Aug 2005 11:10:42 +1200, you wrote:

>Bernard wrote:
>
>> I want to follow what is suggested here. How are STDIN and STDOUT
>> addressed when using the JDBC driver?
>
>The current JDBC driver doesn't support this mode of COPY.
>
>There was some work done in the past to support this but it never got to
>the point of making it into the official driver; see the pgsql-jdbc
>archives for details.
>
>-O
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match


pgsql-general by date:

Previous
From: Ulises Poirier
Date:
Subject: download binary version for Win32
Next
From: elein@varlena.com (elein)
Date:
Subject: Re: in transaction