Re: [HACKERS] Creating indexes in the background

2012-11-01 Thread David Lee
>> Since I've mentioned my use case, I might as well mention another issue I >> stumbled across, which is that concurrent index creation cannot happen from >> within trigger functions. I'm able to non-concurrently create indexes from >> within trigger functions. Why is there this disparity? >

Re: [HACKERS] Creating indexes in the background

2012-11-01 Thread Simon Riggs
On 28 October 2012 01:20, David Lee wrote: > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creation in the background s

Re: [HACKERS] Creating indexes in the background

2012-10-31 Thread Daniel Farina
On Sun, Oct 28, 2012 at 8:22 AM, David Lee wrote: > Thanks. Is this something viable as a feature request? Just to contribute a tiny amount of data: I also get this request from users on a semi-regular basis. It's definitely below the pains of pg_dump/restore or fork-and-reuse-of-connections of l

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Jim Nasby
On 10/28/12 10:22 AM, David Lee wrote: Thanks. Is this something viable as a feature request? Possibly, but it's not terribly high on the list. In the meantime, we've built a user-space index daemon at $WORK that generally solves this issue. We intend to release it at some point, but if you n

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Alvaro Herrera
David Lee escribió: > Thanks for all the responses. > > I forgot to ask in my initial post: If not already available, is background > indexing a viable feature request? (This was why I sent to pgsql-hackers). > > My use case is a multi-tenant CMS where indexes can be created by a web > front-en

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread David Johnston
On Oct 27, 2012, at 19:20, David Lee wrote: > Hey folks, > > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creation i

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Jeff Janes
On Sat, Oct 27, 2012 at 4:20 PM, David Lee wrote: > Hey folks, > > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creatio

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Michael Paquier
On Sun, Oct 28, 2012 at 8:20 AM, David Lee wrote: > Hey folks, > > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creation

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Jaime Casanova
On Sat, Oct 27, 2012 at 6:20 PM, David Lee wrote: > Hey folks, > > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creatio

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Kevin Grittner
David Lee wrote: > It seems like right now when you want to create an index > concurrently, the index creation will get canceled if you cancel > the 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

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread David Lee
Thanks for all the responses. I forgot to ask in my initial post: If not already available, is background indexing a viable feature request? (This was why I sent to pgsql-hackers). My use case is a multi-tenant CMS where indexes can be created by a web front-end. Since web requests should retur

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread Robert Haas
On Sat, Oct 27, 2012 at 7:20 PM, David Lee wrote: > It seems like right now when you want to create an index concurrently, the > index creation will get canceled if you cancel the statement (i.e. you must > keep your statement open). > > Is there a way to "launch" an index creation in the backgr

Re: [HACKERS] Creating indexes in the background

2012-10-29 Thread David Lee
Thanks. Is this something viable as a feature request? On Oct 28, 2012 7:48 AM, "David Johnston" wrote: > On Oct 27, 2012, at 19:20, David Lee wrote: > > > Hey folks, > > > > It seems like right now when you want to create an index concurrently, > the index creation will get canceled if you canc