Re: Re: pgindent timing (was Re: [COMMITTERS] pgsql: Refactor NUM_cache_remove calls in error report path to a PG_TRY)
От | Alvaro Herrera |
---|---|
Тема | Re: Re: pgindent timing (was Re: [COMMITTERS] pgsql: Refactor NUM_cache_remove calls in error report path to a PG_TRY) |
Дата | |
Msg-id | 20090811192826.GC16362@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Re: pgindent timing (was Re: [COMMITTERS] pgsql: Refactor NUM_cache_remove calls in error report path to a PG_TRY) (Andrew Dunstan <andrew@dunslane.net>) |
Ответы |
Re: Re: pgindent timing (was Re: [COMMITTERS] pgsql: Refactor NUM_cache_remove calls in error report path to a PG_TRY)
Re: Re: pgindent timing (was Re: [COMMITTERS] pgsql: Refactor NUM_cache_remove calls in error report path to a PG_TRY) |
Список | pgsql-hackers |
Andrew Dunstan escribió: > > > Tom Lane wrote: > >Andrew Dunstan <andrew@dunslane.net> writes: > >>Robert Haas wrote: > >>>Where it really bit me as when it reindented the DATA() statements > >>>that were touched by ALTER TABLE ... SET STATISTICS DISTINCT. It's > >>>not so hard to compare code, but comparing DATA() lines is the pits. > > > >>Oh? Maybe that's a problem we need to address more directly. I > >>just looked at what it did to the DATA lines - it seems to have > >>changed 501 of them, and all the changes seem to be to do with > >>tabbing. > > > >That's interesting --- the whitespace in those macros has always been > >wildly inconsistent, so I assumed pgindent wasn't touching them at all. > >I wonder what it thinks it's doing... > > Here's the extract attached. I replace tabs with a literal '\t' so > I could see what it was doing. I can't make much head or tail of it > either. pgindent uses entab/detab, which counts spaces and replaces them with tabs. It is wildly undocumented. See src/tools/entab -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления: