Re: pg_migrator and an 8.3-compatible tsvector data type

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
Cc: Greg Stark <stark(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Teodor Sigaev <teodor(at)sigaev(dot)ru>
Subject: Re: pg_migrator and an 8.3-compatible tsvector data type
Date: 2009-05-30 17:22:30
Message-ID: 200905301722.n4UHMU628534@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dimitri Fontaine wrote:
> Hi,
>
> Le 30 mai 09 ? 16:02, Greg Stark a ?crit :
> > On Sat, May 30, 2009 at 1:11 PM, Bruce Momjian <bruce(at)momjian(dot)us>
> > wrote:
> >> I have discovered a simpler solution using ALTER TABLE and calling a
> >> conversion function:
> >>
> >> test=> CREATE TABLE tsvector_test(x tsvector);
> >> CREATE TABLE
> >> test=> ALTER TABLE tsvector_test ALTER COLUMN x TYPE tsvector
> >> test-> USING conversion_func(x);
> >> ALTER TABLE
> >>
> >> No need for a fake data type and the required index infrastructure.
> >
> > I assume you're putting this in the list of commands to run
> > post-migration along with any reindex commands etc? Because it will
> > take a while (still faster than dump/reload i think).

Yes.

> Just thinking some more about the idea to get all those post-
> processing steps running in parallel, it's occurring to me that we
> have all we need already: would it be possible for pg_migrator to
> issue a schema only script with a catalog, in the custom archive format?
> Then we could use pg_restore -j <whatever> post_migrator.script to run
> the last migration step.
>
> Of course, people will want the custom script output of pg_migrator to
> be optional, I guess.

Yes, eventually that is possible.

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

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-05-30 17:23:50 Re: pg_migrator and an 8.3-compatible tsvector data type
Previous Message Simon Riggs 2009-05-30 16:51:35 Re: Clean shutdown and warm standby