Re: Index USING in pg_dump

Поиск
Список
Период
Сортировка
От nconway@klamath.dyndns.org (Neil Conway)
Тема Re: Index USING in pg_dump
Дата
Msg-id 20020308170102.GB11937@klamath.dyndns.org
обсуждение исходный текст
Ответ на Re: Index USING in pg_dump  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Index USING in pg_dump  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Fri, Mar 08, 2002 at 11:07:57AM -0500, Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > This is possible because btree is the default.  TODO item is:
> > >     * Remove USING clause from pg_get_indexdef() if index is btree (Bruce)
> > 
> > I do not think this is necessary or helpful.  The only possible
> > reason to change it would be if we thought btree might someday
> > not be the default index type --- but no such change is on the
> > horizon.  And if one was, you've just embedded special knowledge
> > about btree in yet one more place...
> 
> Yes, but it doesn't look like the way they created it.

Why is this relevant?

> Very few use
> USING in there queries.  Why show it in pg_dump output?

I agree with Tom: this seems like a waste of time, and may even be worse
than the current pg_dump output. The type of the index is "btree"; by
assuming that Pg happens to default to "btree", you're just making the
process of index restoration more fragile.

Cheers,

Neil

-- 
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Marc Munro
Дата:
Сообщение: Re: point in time recovery and moving datafiles online
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Index USING in pg_dump