Unix Technical Forum

Re: About debugging trigger

This is a discussion on Re: About debugging trigger within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> In Postgresql it's RAISE NOTICE 'Your Message Goes Here %', value_to _replace%_must_be_text_or_varchar; Please note, this is not a question ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:38 PM
Melvin Davidson
 
Posts: n/a
Default Re: About debugging trigger

In Postgresql it's

RAISE NOTICE 'Your Message Goes Here %', value_to
_replace%_must_be_text_or_varchar;

Please note, this is not a question for PgAdmin. It should go to
pgsql-general@postgresql.org <mailtogsql-general@postgresql.org>
________________________________

From: pgadmin-support-owner@postgresql.org
[mailtogadmin-support-owner@postgresql.org] On Behalf Of Michael Su
Sent: Tuesday, November 07, 2006 11:59 AM
To: pgadmin-support@postgresql.org
Subject: [pgadmin-support] About debugging trigger



Hi,

I have a question about how to insert standard output statement in
trigger for debugging purpose.

I have tried using the following:

* echo 'show debug message' ;
* echo "show debug message" ;
* print("show debug message");
* print('show debug message');
* dbms_output.put_line('show debug message');
* dbms_output.put_line("show debug message");

However, I got the following error message:

* ERROR: syntax error at or near "echo" at character 1
QUERY: echo 'show debug message'
* ERROR: syntax error at or near "print" at character 1
QUERY: print('show debug message')
* ERROR: syntax error at or near "dbms_output" at character 1
QUERY: dbms_output.put_line("show debug message")


I know that in Oracle, the way to insert standard output statement in
trigger is using dbms_output.put_line() method, but it doesn't seem to
work in pgadmin.

I have already checked the frequently asked questions list as well as
the pgAdmin documentation for a solution and I also have tried searching
Google, however I can not find a solution for it. Please help when you
get a chance!

Thank you in advance,



Michael


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com