pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedis multiple insert possible with posgress?
3+ messages / 3 participants
[nested] [flat]
* is multiple insert possible with posgress?
@ 2000-05-16 03:39 sidster <patrick@mail.boxsoft.com>
2000-05-16 03:58 ` Re: is multiple insert possible with posgress? Tom Lane <tgl@sss.pgh.pa.us>
2000-05-16 06:57 ` Re: is multiple insert possible with posgress? Erol Oz <eroloz@bilgi.edu.tr>
0 siblings, 2 replies; 3+ messages in thread
From: sidster @ 2000-05-16 03:39 UTC (permalink / raw)
To: pgsql-sql
Greetings friends,
I've started to look at postgreSQL for a potential rdbms platform to
move our development to. However, i have found one slight short-coming
thus far.
I seems that multiple inserts are not supported by postgres:
e.g.,
INSERT INTO test VALUES (
'one', 1, 2, 3
), (
'two', 2, 3, 4
), (
.
. -- you get the idea
. -- now imagine a hundred or so of these
), (
'ten', 10, 11, 12
);
will generate the following error:
ERROR: parser: parse error at or near ","
Is this type of insert not supported at all?
I did a search through the mailing lists (namely pgsql-sql and
pgsql-general). Admittedly the search wasn't exhaustive but i was
unable to 'hit' on any relevant topic.
Could someone please clarify whether or not multiple-inserts are planned
for a near-future release? Pointers to documentation and/or
mailing-list discussions would be appreciated.
tia,
patrick
--
Abstainer: a weak person who yields to the temptation of
denying himself a pleasure.
-- Ambrose Bierce
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: is multiple insert possible with posgress?
2000-05-16 03:39 is multiple insert possible with posgress? sidster <patrick@mail.boxsoft.com>
@ 2000-05-16 03:58 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2000-05-16 03:58 UTC (permalink / raw)
To: sidster <patrick@mail.boxsoft.com>; +Cc: pgsql-sql
sidster <patrick@mail.boxsoft.com> writes:
> Could someone please clarify whether or not multiple-inserts are planned
> for a near-future release?
It is (or should be) somewhere on the TODO list ... but I doubt anyone
sees it as a particularly critical priority ...
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: is multiple insert possible with posgress?
2000-05-16 03:39 is multiple insert possible with posgress? sidster <patrick@mail.boxsoft.com>
@ 2000-05-16 06:57 ` Erol Oz <eroloz@bilgi.edu.tr>
1 sibling, 0 replies; 3+ messages in thread
From: Erol Oz @ 2000-05-16 06:57 UTC (permalink / raw)
To: pgsql-sql
Hi,
I think there is no need multiple inserts. Because you can use copy command
to insert hunderds of records from a delimited text file. It is much more
easy to create a text file than to type hunderds of VALUES (...) lines in
psql.
Erol
sidster wrote:
> Greetings friends,
>
> I've started to look at postgreSQL for a potential rdbms platform to
> move our development to. However, i have found one slight short-coming
> thus far.
>
> I seems that multiple inserts are not supported by postgres:
>
> e.g.,
>
> INSERT INTO test VALUES (
> 'one', 1, 2, 3
> ), (
> 'two', 2, 3, 4
> ), (
> .
> . -- you get the idea
> . -- now imagine a hundred or so of these
> ), (
> 'ten', 10, 11, 12
> );
>
> will generate the following error:
>
> ERROR: parser: parse error at or near ","
>
> Is this type of insert not supported at all?
>
> I did a search through the mailing lists (namely pgsql-sql and
> pgsql-general). Admittedly the search wasn't exhaustive but i was
> unable to 'hit' on any relevant topic.
>
> Could someone please clarify whether or not multiple-inserts are planned
> for a near-future release? Pointers to documentation and/or
> mailing-list discussions would be appreciated.
>
> tia,
>
> patrick
> --
> Abstainer: a weak person who yields to the temptation of
> denying himself a pleasure.
> -- Ambrose Bierce
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-05-16 06:57 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16 03:39 is multiple insert possible with posgress? sidster <patrick@mail.boxsoft.com>
2000-05-16 03:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2000-05-16 06:57 ` Erol Oz <eroloz@bilgi.edu.tr>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox