Re: Postgresql - Inline comment in VIEW Sql definition

From: vikram singh chandel <vikramschandel(at)outlook(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>, "pgsql-novice-owner(at)postgresql(dot)org" <pgsql-novice-owner(at)postgresql(dot)org>
Subject: Re: Postgresql - Inline comment in VIEW Sql definition
Date: 2016-04-06 14:41:42
Message-ID: BM1PR01MB0371222D03A442BB49E106B0CC9F0@BM1PR01MB0371.INDPRD01.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Awaiting for your response [&#X02639]

________________________________
From: vikram singh chandel <vikramschandel(at)outlook(dot)com>
Sent: Tuesday, April 5, 2016 1:17 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: Fw: Postgresql - Inline comment in VIEW Sql definition

Hi Team,

One more thing, I googled and found out few links related to "extending sql in PostgreSQL".

https://www.citusdata.com/blog/90-sql-scaling-and-whats-unique-about-postgres

[https://www.citusdata.com/sites/default/files/logo_0_0.png]<https://www.citusdata.com/blog/90-sql-scaling-and-whats-unique-about-postgres>

SQL, Scaling, and What's Unique About Postgres | Citus Data<https://www.citusdata.com/blog/90-sql-scaling-and-whats-unique-about-postgres>
www.citusdata.com
This blog post simplifies certain concepts to be brief. If you're looking for examples on how to override the PostgreSQL planner and executor, please check out pg ...

It has mentioned that "Fortunately, you can change any database submodule's behavior in Postgres by intercepting the right hook." Will it be possible to go through this approach.
Please suggest.

Thanks
Vikram

________________________________
From: vikram singh chandel <vikramschandel(at)outlook(dot)com>
Sent: Monday, April 4, 2016 7:01 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: Postgresql - Inline comment in VIEW Sql definition

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

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Luca Ferrari 2016-04-08 10:00:10 Re: Postgresql - Inline comment in VIEW Sql definition
Previous Message David G. Johnston 2016-04-05 19:18:38 Re: Creating a limits table