dbTalk Databases Forums  

Obtaining the Result Status

comp.databases.postgresql comp.databases.postgresql


Discuss Obtaining the Result Status in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roebie (Offline)
Junior Member
 
Posts: 5
Join Date: Sep 2006

Default Obtaining the Result Status - 09-08-2006 , 03:51 AM






I know of two ways to obtain a result status (see http://www.postgresql.org/docs/8.0/i...TS-DIAGNOSTICS)
  • GET DIAGNOSTICS
  • FOUND
Now I have a stored procedure that creates views and I want to know whether creation of a particular view succeeded. Both of the above methods are useless for this goal. The only solution I can come up with is something like
Code:
PERFORM * FROM information_schema.views WHERE table_schema = 'public' AND table_name = 'my_view_name'; IF FOUND THEN RAISE NOTICE 'creation of my_view_name succeeded'; END IF;
I was wondering if there are other/better methods.

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 - 2013, Jelsoft Enterprises Ltd.