Re: [SQL] Duplicate tuples with unique index

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [SQL] Duplicate tuples with unique index
Дата
Msg-id 200001260543.AAA22584@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] Duplicate tuples with unique index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
> Bruce thinks that the pg_upgrade script will ensure that the system-
> table tuples are all in frozen states (by VACUUMing them).  I don't
> trust it worth a dime, myself.  Maybe it will work, but it hasn't been
> proven in the field.  So, if you'd like to try it, by all means do so
> --- but make a pg_dump backup first!  And let us know whether you have
> problems or not!

I see what you are saying.  If a table created as part of the new
pg_dump schema create matches a transaction that aborted in the old
database, the table would be invalid.  However, as you mentioned, once
the tuple is marked as committed/rolled back, it doesn't consult.

Basically, I was surprised pg_upgrade worked at all in any of the
releases.  It seems too good to be true.  However, I have received very
few problem reports about its use, and it does get used.

--  Bruce Momjian                        |  http://www.op.net/~candle pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Duplicate tuples with unique index
Следующее
От: Christopher Sawtell
Дата:
Сообщение: Re: [SQL] Question about COPY command