Re: [GENERAL] DROP INDEX CASCADE doesn't want to drop unique constraints?

2017-04-24 Thread Andreas Kretschmer
Ivan Voras wrote: > Hello, > > On trying to drop an index named "employer_employerid_key" which supports a > unique constraint: > >     "employer_employerid_key" UNIQUE CONSTRAINT, btree (employerid) > > I get this error: > > ERROR:  cannot drop index employer_employerid_key because constrain

Re: [GENERAL] drop index without accessexclusivelock in transaction (JAVA)

2015-11-18 Thread Jim Nasby
On 11/18/15 10:48 AM, Emi wrote: Hello, Through java jdbc, is it possible that we do the following steps without accessexclusivelock for index: setautocommit(false); drop index1, 2,; insert millions records set index1,2... commit; Found this post, but it says only within psql block begin/

Re: [GENERAL] drop index

2008-09-16 Thread Tom Lane
"Pau Marc Munoz Torres" <[EMAIL PROTECTED]> writes: > psql 8.2.6 (server 8.2.5) > Schema | Name | Type | Owner |Table > ++---+---+-- > public | h2dbp | index | pau | precalc > public | icsp | index | pau | local > public | icspn | index | pau

Re: [GENERAL] drop index

2008-09-16 Thread Pau Marc Munoz Torres
psql 8.2.6 (server 8.2.5) Schema | Name | Type | Owner |Table ++---+---+-- public | h2dbp | index | pau | precalc public | icsp | index | pau | local public | icspn | index | pau | names public | idx| index | pau | local public | iid

Re: [GENERAL] drop index

2008-09-16 Thread Richard Huxton
Pau Marc Munoz Torres wrote: > Hi everybody > > I have a problem with index, i droped a table before drop their indexs, so, > now i can't remove the index That shouldn't be possible. What version of PostgreSQL is this? -- Richard Huxton Archonet Ltd -- Sent via pgsql-general mailing list

Re: [GENERAL] Drop Index and Create Index

2008-07-22 Thread Scott Marlowe
On Tue, Jul 22, 2008 at 1:39 AM, Giovanni Nervi <[EMAIL PROTECTED]> wrote: > Hi, > > I would like recreate all indexes on a database, the command reindex > is exclusive lock on table so I prefer the method drop index and > create index. Is there a script for extract the command for the create > ind