Re: Function call - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: Function call
Date
Msg-id 20090124153848.GA12460@tux
Whole thread Raw
In response to Re: Function call  ("Nico Callewaert" <callewaert.nico@telenet.be>)
List pgsql-novice
Nico Callewaert <callewaert.nico@telenet.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°

pgsql-novice by date:

Previous
From: "Nico Callewaert"
Date:
Subject: Re: Function call
Next
From: Rodrigo E. De León Plicet
Date:
Subject: Re: SQL Question: Averages of intervals.