Re: Creating indexes in the background - Mailing list pgsql-hackers

From Jaime Casanova
Subject Re: Creating indexes in the background
Date
Msg-id CAJKUy5j47QarmYtaRTDNBv2GKa5gxJDGBg9EHxCZcYYHCfVt5w@mail.gmail.com
Whole thread Raw
In response to Creating indexes in the background  (David Lee <davidomundo@gmail.com>)
List pgsql-hackers
On Sat, Oct 27, 2012 at 6:20 PM, David Lee <davidomundo@gmail.com> wrote:
> Hey folks,
>
> It seems like right now when you want to create an index concurrently, the index creation will get canceled if you
cancelthe statement (i.e. you must keep your statement open). 
>
> Is there a way to "launch" an index creation in the background so that the statement doesn't need to be kept open?
>

do it in the command line:

psql -c "CREATE INDEX CONCURRENTLY aname ON atable(acolumn)" adb &

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566         Cell: +593 987171157



pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Creating indexes in the background
Next
From: "Kevin Grittner"
Date:
Subject: Re: Index creation in postgresql