Re: typedefs for indent - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: typedefs for indent
Date
Msg-id 200903272200.n2RM0Hs24047@momjian.us
Whole thread Raw
In response to Re: typedefs for indent  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: typedefs for indent  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Frankly, I don't remember anyone complaining we didn't find any typedefs
> > in pgindent,
> 
> There are lots and lots of places where it's obvious that pgindent
> was misinformed on the subject, because it puts in a space where there
> should not be one, eg "typename * ptr" instead of "typename *ptr".
> Maybe I'm just being too anal in worrying about a space here or a space
> there ... but then why do we run the thing at all?

Sure, why not make it as good as we can.

> This is the first time I've heard anyone suggest that false positives
> could be a problem.  What exactly would be the results of a false
> match?  Would it look worse than the false negatives do?

Well, I assume a false positive would do the opposite, meaning it would
not have a space where it should have one.  I am also worried about a
typedef list that changes from release to release as buildfarm members
change;  variability might be worse than correctness in this case.

Anyway, I think a diff of using my list and Andrew's list will show us
which one gets things clearest;  the diff is going to highlight only
cases where the typedef lists change formatting.

Andrew, where exactly is the list I should try?

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Any reason not to return row_count in cursor of plpgsql?
Next
From: Bruce Momjian
Date:
Subject: Re: typedefs for indent