Re: database design questions

From: "hubert depesz lubaczewski" <depesz(at)gmail(dot)com>
To: "Ottavio Campana" <ottavio(at)campana(dot)vi(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: database design questions
Date: 2006-04-05 07:33:56
Message-ID: 9e4684ce0604050033w321a816hac33f4b9c7e16736@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/4/06, Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> wrote:
>
> hubert depesz lubaczewski wrote:
> > 2) do you think it's possible in a plpgsql procedure select the
> name of
> > a table into a variable and use that variable in the query?
> > possible, but not really good way. read about 'execute' in plpgsql.
> why isn't it good?
> I mean, from my point of view is like a function accepting a pointer. In
> many languages it is used.
>

when coding in plpgsql you have to use dynamic queries to use this kind of
thing. this - by itself - is not bad. but it has certain performance penalty
when compared to standard queries.
i think reading plpgsql's manual about "execute" is the best one can do
about it :)

best regards

depesz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Velevitch 2006-04-05 07:37:28 pg_dump and copy command
Previous Message Don Y 2006-04-05 06:19:34 Re: User defined data type