Postgresql - Inline comment in VIEW Sql definition - Mailing list pgsql-novice

From vikram singh chandel
Subject Postgresql - Inline comment in VIEW Sql definition
Date
Msg-id BM1PR01MB03712480290CA7C12F0E3722CC9D0@BM1PR01MB0371.INDPRD01.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: Postgresql - Inline comment in VIEW Sql definition
List pgsql-novice

Hello Team,

PostgreSQL does not allow to strore inline comments in view's SQL definition, because the CREATE VIEW statement is parsed, and then analyzed to see what table and other database objects are referenced, and then the analyzed parse-tree is saved.

However in our application we have designed one process which uses the tags that we mention within comments as part of CREATE VIEW definition. Things were going on good in Oracle database as it stored inline comments also. During migration we are unable to port one of our functionality which have dependency on comments in View in Postgres it didn't save the comments.

Do we have anyway to get the actual VIEW text in Postgres db.

Thanks

Vikram

pgsql-novice by date:

Previous
From: JORGE MALDONADO
Date:
Subject: unrecognized configuration parameter "autocommit"
Next
From: Tom Lane
Date:
Subject: Re: Postgresql - Inline comment in VIEW Sql definition