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

Re: Function call

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Function call
Date: 2009-01-24 15:38:48
Message-ID: 20090124153848.GA12460@tux (view raw or flat)
Thread:
Lists: pgsql-novice
Nico Callewaert <callewaert(dot)nico(at)telenet(dot)be> schrieb:
> Hello again,
>
> This is working ! Thanks...
> Is it better to use varchar as parameter, or just "text" ?  The colmuns 
> I'm updating through this function are varchars.

It's puny.


> I'm still surprised about 1 thing : it seems PostgreSQL is not checking 
> for existing tables or columns.
>
> Like this :         UPDATE tbl_table_last_change
>            SET last_user = current_user,
>
> Table tbl_table_last_change doesn't exist yet, but still postgreSQL is  
> acception the function definition...

Right, the code is syntactically correct.


> So, I guess, there is no early checking on tables/fields ?

Right.



Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

In response to

pgsql-novice by date

Next:From: Rodrigo E. De León PlicetDate: 2009-01-24 16:16:31
Subject: Re: SQL Question: Averages of intervals.
Previous:From: Nico CallewaertDate: 2009-01-24 14:29:31
Subject: Re: Function call

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