dbTalk Databases Forums  

[BUGS] Behavior at odds with documentation (CREATE USER and SQL language functions)

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Behavior at odds with documentation (CREATE USER and SQL language functions) in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christopher Travers
 
Posts: n/a

Default [BUGS] Behavior at odds with documentation (CREATE USER and SQL language functions) - 10-23-2003 , 10:42 AM






Hi all;

I came across another piece of strange behavior that I wanted to report to
you. This appears to be related to previous email disucssions (see
http://archives.postgresql.org/pgsql.../msg00091.php).

Utility statements do not work from SQL language functions. Presumably this
is because SQL only does argument substitution and that these do not work
with utility commands. The workaround is to do this in plpgsql with an
EXECUTE statement.

If this is indeed the expected behavior (as I understand from the previous
thread), then it would be very nice to see a note to this effect in the
documentation on SQL language functions, as that might save others much
troubleshooting time as well.

Also, is there any chance that this will be changed in the near future? It
would be nice to have the option to use arguments for utility commands in
SQL language (and for that matter plpgsql language) functions?

Best Wishes,
Chris Travers

__________________________________________________ _______________
Express yourself with MSN Messenger 6.0 -- download now!
http://www.msnmessenger-download.com.../reach_general


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.