Re: View definition formatting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: View definition formatting
Date: 2003-04-01 19:18:12
Message-ID: 2369.1049224692@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Perhaps as a workaround you could invent a standard indentation format and
> format the rules automatically that way, so that users will be able to
> find everything in the same place automatically after the second edit
> cycle.

Perhaps we could make pg_get_ruledef and friends try to prettyprint
their output a little better, instead of duplicating such logic in
various clients (which couldn't do nearly as well at it anyway without
re-parsing the string :-().

Does anyone have code that depends on these functions returning
single-line output? (I suppose the pg_rules and pg_views views might
get a bit ugly, but perhaps psql could be taught to format data with
embedded newlines better than it does now...)

regards, tom lane

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Robert Treat 2003-04-01 19:49:50 Re: View definition formatting
Previous Message efesar 2003-04-01 18:38:09 Re: pgadmin3 query tools

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2003-04-01 19:49:50 Re: View definition formatting
Previous Message pgsql 2003-04-01 18:55:26 Re: PostgreSQL and SOAP, suggestions?