From: | "Joris Dobbelsteen" <Joris(at)familiedobbelsteen(dot)nl> |
---|---|
To: | "Aaron Bingham" <bingham(at)cenix-bioscience(dot)com> |
Cc: | "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "postgres general" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: sql formatter/beautifier |
Date: | 2007-03-08 11:32:33 |
Message-ID: | 73427AD314CC364C8DF0FFF9C4D693FF0379D4@nehemiah.joris2k.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
If you use pgAdmin3 for example, it will format the definition in the
database for you. This will exclude stored procedures, which are stored
as-is.
The formatter isn't too good however...
There are better products on the market that will do the formatting
significantly better.
This one was nice: http://psti.equinoxbase.com/cgi-bin/handler.pl
- Joris
>-----Original Message-----
>From: Aaron Bingham [mailto:bingham(at)cenix-bioscience(dot)com]
>Sent: donderdag 8 maart 2007 11:36
>To: Joris Dobbelsteen
>Cc: Merlin Moncure; postgres general
>Subject: Re: [GENERAL] sql formatter/beautifier
>
>Joris Dobbelsteen wrote:
>> PostGreSQL (7.4 and onward) has such a thing build-in, but its not
>> particulary good (simple case works, but once it gets
>complex it makes
>> a mess out of it).
>Hi,
>
>Cleaning out my pgsql-general mail, I ran across your post.
>How do I invoke PostgreSQL's built-in SQL beautifier? I
>wasn't able to find a reference to this feature in the documentation.
>
>Thanks,
>
>--
>--------------------------------------------------------------------
>Aaron Bingham
>Senior Software Engineer
>Cenix BioScience GmbH
>--------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Thorsten Kraus | 2007-03-08 12:11:46 | DB Modeler |
Previous Message | Aaron Bingham | 2007-03-08 10:35:58 | Re: sql formatter/beautifier |