Using COPY FREEZE with pg_restore --single-transaction

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Using COPY FREEZE with pg_restore --single-transaction
Date: 2013-01-25 15:24:33
Message-ID: 20130125152433.GY21914@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

pg_restore --single-transaction has the setup to make use of the new
COPY FREEZE optimization.

However, I don't see us using COPY FREEZE for pg_restore
--single-transaction. Shouldn't we do that? The problem is we would
need to have pg_dump emit the FREEZE, which would cause it not to load
in earlier versions of Postgres, and to (soon) emit a NOTICE for
non-single-transaction loads in all other cases. :-(

Can pg_restore inject FREEZE itself when it does the copy?

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Helmle 2013-01-25 15:24:52 Hanging backends and possible index corruption
Previous Message Tom Lane 2013-01-25 15:20:07 Re: Skip checkpoint on promoting from streaming replication