About debugging trigger - Mailing list pgadmin-support
From | Michael Su |
---|---|
Subject | About debugging trigger |
Date | |
Msg-id | 000501c7029e$c129d120$7300a8c0@juniper Whole thread Raw |
Responses |
Re: About debugging trigger
|
List | pgadmin-support |
<div class="Section1"><p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12.0pt">Hi,<br /><br /> I have a question about how to insert standard output statement in trigger for debugging purpose.<br /><br /> I have tried using the following:</span></font><ul type="disc"><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">echo 'show debug message' ;</span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">echo "show debug message" ; </span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">print("show debug message");</span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">print('show debug message');</span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">dbms_output.put_line('show debug message');</span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">dbms_output.put_line("show debug message");</span></font></ul><p class="MsoNormal"><fontface="Times New Roman" size="3"><span style="font-size: 12.0pt">However, I got the following error message: </span></font><ul type="disc"><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">ERROR: syntax error at or near "echo" at character 1<br /> QUERY: echo 'show debugmessage'</span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1level1 lfo2"><font face="Times New Roman" size="3"><span style="font-size:12.0pt">ERROR: syntax error at or near"print" at character 1<br /> QUERY: print('show debug message') </span></font><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2"><font face="Times New Roman" size="3"><spanstyle="font-size:12.0pt">ERROR: syntax error at or near "dbms_output" at character 1<br /> QUERY: dbms_output.put_line("showdebug message")</span></font></ul><p class="MsoNormal"><font face="Times New Roman" size="3"><spanstyle="font-size: 12.0pt"><br /> 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. <br /><br /> I have already checked the frequentlyasked 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! <br /><br /> Thank you in advance,</span></font><pclass="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12.0pt"> </span></font><p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12.0pt">Michael</span></font><font face="Arial" size="2"><span style="font-size: 10.0pt;font-family:Arial"></span></font></div>
pgadmin-support by date: