Re: a proposal for an extendable deparser

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Dave Gudeman <dave(dot)gudeman(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: a proposal for an extendable deparser
Date: 2009-03-02 08:37:03
Message-ID: 49AB9AAF.2070404@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dave Gudeman wrote:
> I don't need to add new node types or add any syntax; it is the output that
> I'm concerned with. What I want is a way to print a tree according to some
> pretty strict rules. For example, I want a special syntax for function RTEs
> and I don't want the v::type notation to be output (the flag to turn it off
> doesn't do what I want).

This will become useful for SQL/MED connectors to other databases. Other
DBMSs have slightly different syntax, and with something like this you
could still use ruleutils.c for the deparsing, but tweak it slightly for
the target database.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2009-03-02 09:05:37 Re: xpath processing brain dead
Previous Message Peter Eisentraut 2009-03-02 08:26:25 Re: xpath processing brain dead