Re: Memory consumption problem

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Daniel T(dot) Staal" <DStaal(at)usa(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Memory consumption problem
Date: 2006-05-05 16:05:30
Message-ID: 20060505160530.GA20502@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, May 05, 2006 at 11:33:06 -0400,
"Daniel T. Staal" <DStaal(at)usa(dot)net> wrote:
> On Fri, May 5, 2006 10:52 am, Franck Routier said:
> > Hi,
> >
> > I have a problem with a simple request :
> >
> > insert into mytable
> > select a.id, a.desc, 'mystring'
> > from mytable a;
>
> Um, is that selecting the ids and descriptions from a table and then
> inserting them into that same table?
>
> I'm not sure what Postgres does with recursion...

That wouldn't cause recursion. The SELECT part of the query will see the
original contents of the table and not ones being inserted in the same query.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-05-05 16:52:10 Re: Memory consumption problem
Previous Message Daniel T. Staal 2006-05-05 15:33:06 Re: Memory consumption problem