Re: Creating indexes in the background

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Creating indexes in the background
Дата
Msg-id CAJKUy5j47QarmYtaRTDNBv2GKa5gxJDGBg9EHxCZcYYHCfVt5w@mail.gmail.com
обсуждение исходный текст
Ответ на Creating indexes in the background  (David Lee <davidomundo@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Creating indexes in the background
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Index creation in postgresql