Re: [HACKERS] insert using select with limit

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Theo Kramer <theo(at)flame(dot)co(dot)za>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] insert using select with limit
Date: 1999-12-10 15:41:12
Message-ID: 20558.944840472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Theo Kramer <theo(at)flame(dot)co(dot)za> writes:
> Just noticed that limit is ignored when using a select to insert
> into a table.
> Eg. insert into mytable (f1, f2) select f1, f2 from myothertable limit 10;
> selects all records from myothertable.

Ugh, you're right. Not sure if this will be easily fixable or not.
Worst case, the fix might have to wait for the long-planned query tree
redesign.

Or it might be a one-liner. Will look into it.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 1999-12-10 15:43:31 Re: [HACKERS] 6.6 release
Previous Message Hiroshi Inoue 1999-12-10 15:33:36 RE: [HACKERS] Volunteer: Large Tuples / Tuple chaining