Skip site navigation (1) Skip section navigation (2)

Re: Bug #732: LIMIT clause bugs with insert...select

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: guillaume(dot)lafarge(at)exalog(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #732: LIMIT clause bugs with insert...select
Date: 2002-08-08 23:28:34
Message-ID: 200208082328.g78NSYf09928@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Strange, it works here.  What version are you using:

	test=> create table xx as select * from pg_class where 1=0;
	SELECT
	test=> insert into xx select * from pg_class limit 1;
	INSERT 16869 1
	test=> select * from pg_class;
	(1 row)

---------------------------------------------------------------------------

pgsql-bugs(at)postgresql(dot)org wrote:
> Guillaume Lafarge (guillaume(dot)lafarge(at)exalog(dot)com) reports a bug with a severity of 3
> The lower the number the more severe it is.
> 
> Short Description
> LIMIT clause bugs with insert...select
> 
> Long Description
> The LIMIT clause is not working with SELECT command if SELECT is part of INSERT command.
> 
> Sample Code
> insert into table1 select * from table2 limit 20;
> 
> No file was uploaded with this report
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-bugs by date

Next:From: BarkerDate: 2002-08-09 11:20:50
Subject: Warning: PostgreSQL query failed: ERROR: [my_table]: Permission denied in [my_php_program]
Previous:From: Tom LaneDate: 2002-08-08 23:00:35
Subject: Re: Hiting TAB while editing a line crashes PSQL.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group