Re: [HACKERS] 8.2 features?

From: Joe Conway <mail(at)joeconway(dot)com>
To:
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Bernd Helmle <mailings(at)oopsware(dot)de>, Peter Eisentraut <peter_e(at)gmx(dot)net>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>, Susanne Ebrecht <susanne(dot)ebrecht(at)credativ(dot)de>
Subject: Re: [HACKERS] 8.2 features?
Date: 2006-07-18 04:39:59
Message-ID: 44BC661F.80609@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers pgsql-patches

Joe Conway wrote:
>>>
>>>>> . multiple values clauses for INSERT
>
> The best way might be to fabricate a selectStmt equiv to
> "SELECT <targetlist> UNION ALL SELECT <targetlist>...",
> but that still feels like a hack.

Here is a patch pursuant to my earlier post. It has the advantage of
being fairly simple and noninvasive.

The major downside is that somewhere between 9000 and 10000
VALUES-targetlists produces "ERROR: stack depth limit exceeded".
Perhaps for the typical use-case this is sufficient though.

I'm open to better ideas, comments, objections...

Thanks,

Joe

Attachment Content-Type Size
multi-insert.diff text/x-patch 3.8 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Heejin Mun 2006-07-18 06:23:46 I'd like to translate the english manual into Korean!
Previous Message Joe Conway 2006-07-17 21:42:10 Re: 8.2 features?

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2006-07-18 05:21:54 Re: 8.2 features?
Previous Message Joachim Wieland 2006-07-18 04:05:10 Re: [HACKERS] pg_regress in C

Browse pgsql-patches by date

  From Date Subject
Next Message Jie Zhang 2006-07-18 06:09:46 On-disk Bitmap Index patch
Previous Message Joachim Wieland 2006-07-18 04:05:10 Re: [HACKERS] pg_regress in C