Can someone else verify if this is a bug?

From: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
To: Postgresql General List <pgsql-general(at)postgresql(dot)org>
Subject: Can someone else verify if this is a bug?
Date: 2007-08-25 14:28:49
Message-ID: 46D03CA1.4020109@amsoftwaredesign.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I think there might be a bug in the built in function pg_get_viewdef.

Basically if you have a function in your view SQL like this:

replace(address1, '\r', '')

pg_get_viewdef is returning the view definition with the \r replaced by
it's ASCII code which causes this:

replace(address1, '
','')

The returned def gets a line break where the \r should be.

I have verified this in Lightning Admin and PG Admin III, just wanted a
second opinion.

I apologize if this is already known.

Thanks,

Tony

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2007-08-25 14:36:15 Re: PostgreSQL vs Firebird feature comparison finished
Previous Message Bill Moran 2007-08-25 14:18:25 Re: Bigtime scaling of Postgresql (cluster and stuff I suppose)