Re: BUG #1830: Non-super-user must be able to copy from a

From: "William ZHANG" <uniware(at)zedware(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1830: Non-super-user must be able to copy from a
Date: 2005-08-19 02:07:03
Message-ID: de3es5$20fr$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general


"Oliver Jowett" <oliver(at)opencloud(dot)com>
wrote:43052755(dot)7000003(at)opencloud(dot)com(dot)(dot)(dot)
> Bernard wrote:
>
>> 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.
>
> I don't understand why this is true at all -- for example, our
> application currently does bulk INSERTs over a JDBC connection, and
> moving to COPY has been an option I looked at in the past. Importing
> lots of data from a remote machine is hardly an uncommon case.

When exporting and importing data from other data sources, there maybe
many rows to be moved. In this special case, should COPY be faster than
INSERTs? Have pgsql-jdbc supported COPY?

If I read correctly, what Bernard want is COPY from/to server-side files.
That is actually a security risk for non-superuser. They may read or
overwrite
any files can read/write by postgres server process.

>
>> 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.
>
> I guess that other DB engines don't care about unprivileged DB users
> reading any file that the backend can access.
>
> -O
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Oliver Jowett 2005-08-19 02:11:38 Re: BUG #1830: Non-super-user must be able to copy from a
Previous Message Michael Fuhr 2005-08-19 01:41:41 Re: BUG #1831: plperl gives error after reconnect.

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Jowett 2005-08-19 02:11:38 Re: BUG #1830: Non-super-user must be able to copy from a
Previous Message Fernando Lujan 2005-08-19 02:02:07 Re: Generating random values.