pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
RAISE NOTICE
3+ messages / 3 participants
[nested] [flat]

* RAISE NOTICE
@ 2007-10-04 02:25 Ray Madigan <ray@madigans.org>
  2007-10-04 03:26 ` Re: RAISE NOTICE Greg Williamson <Gregory.Williamson@digitalglobe.com>
  2007-10-04 08:36 ` Re: RAISE NOTICE yogesh.arora.daffodil@gmail.com
  0 siblings, 2 replies; 3+ messages in thread

From: Ray Madigan @ 2007-10-04 02:25 UTC (permalink / raw)
  To: pgsql-admin

I am trying to debug a trigger using raise notice.  When I add this line

raise notice 'A %', 5;

I get a syntax erreo at or near "A"

I am using version 8.1.2

Thanks



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: RAISE NOTICE
  2007-10-04 02:25 RAISE NOTICE Ray Madigan <ray@madigans.org>
@ 2007-10-04 03:26 ` Greg Williamson <Gregory.Williamson@digitalglobe.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Greg Williamson @ 2007-10-04 03:26 UTC (permalink / raw)
  To: Ray Madigan <ray@madigans.org>; +Cc: pgsql-admin

Ray Madigan wrote:
> I am trying to debug a trigger using raise notice.  When I add this line
>
> raise notice 'A %', 5;
>
> I get a syntax erreo at or near "A"
>
> I am using version 8.1.2
>
> Thanks
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>   
Ray,

You don't say what form of quoting you are using, but maybe you could 
try doubling up those quotes ?
raise notice ''A is %'',5;

HTH,

Greg Williamson
Senior DBA
GlobeXplorer LLC, a DigitalGlobe company

Confidentiality Notice: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information and must be protected in 
accordance with those provisions. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.

(My corporate masters made me say this.)




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: RAISE NOTICE
  2007-10-04 02:25 RAISE NOTICE Ray Madigan <ray@madigans.org>
@ 2007-10-04 08:36 ` yogesh.arora.daffodil@gmail.com
  1 sibling, 0 replies; 3+ messages in thread

From: yogesh.arora.daffodil@gmail.com @ 2007-10-04 08:36 UTC (permalink / raw)
  To: pgsql-admin


"Ray Madigan" wrote:
> I am trying to debug a trigger using raise notice.  When I add this line
>
> raise notice 'A %', 5;
>
> I get a syntax erreo at or near "A"
>
> I am using version 8.1.2
>
> Thanks
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster


Hello Ray,
    You are using the single Quotes in the notice specified by
you...........
 You must use

  raise notice ''A %'',5;

This is not directly " directly the double quote....it is single quote
two times.......

Regards,
 Yogesh Arora




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-10-04 08:36 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 02:25 RAISE NOTICE Ray Madigan <ray@madigans.org>
2007-10-04 03:26 ` Greg Williamson <Gregory.Williamson@digitalglobe.com>
2007-10-04 08:36 ` yogesh.arora.daffodil@gmail.com

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox