Re: WIP patch: Collation support - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: WIP patch: Collation support
Date
Msg-id 20080916153511.GG9229@alvh.no-ip.org
Whole thread Raw
In response to Re: WIP patch: Collation support  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List pgsql-hackers
Zdenek Kotala escribió:
> Gregory Stark napsal(a):

>> AFAIK we can't easily connect to the new database and do some fiddling with
>> it, can we? If we could we could check if there are any non-empty indexes
>> which depend on the collation and only print the warning if we find any (and
>> even mark them invalid).
>
> Autovacum uses InitPostgres function to swith to another database. I'm  
> not sure how much safe it is in create database command and when we are  
> already switched we can reindex affected indexes.

It's only supposed to work if you're not previously connected to any
database.  (Autovacuum never "switches to another database"; any
particular worker only connects to a single database).

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: text search patch status update?
Next
From: "Sushant Sinha"
Date:
Subject: Re: text search patch status update?