Andreas Pflug wrote: > I also could implement line break and indentation formatting. I > implemented a keyword-based algorithm in pgAdmin3, and having the > original tree the job is obviously easier. Do we need any flexibility > about indent char (tab or space) and indentation size (2 chars)? The > pgAdmin3 algorithm uses 4 spaces, and tries to align keywords so they > line up nicely, and I'd prefer doing it this way again. > > SELECT foo > FROM bar b > JOIN chair c USING (thekeycol) > WHERE ...
Oh, one more thing --- right justify isn't as accepted as left-justify --- sorry. > SELECT foo > FROM bar b > JOIN chair c USING (thekeycol) > WHERE ... -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org