pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedreindex script
4+ messages / 2 participants
[nested] [flat]
* reindex script
@ 2010-11-10 10:33 Silvio Brandani <silvio.brandani@tech.sdb.it>
0 siblings, 0 replies; 4+ messages in thread
From: Silvio Brandani @ 2010-11-10 10:33 UTC (permalink / raw)
To: pgsql-admin
we are using reindex on single defragmented indexes on a nigtly schedule
script.
last night we encounter a problem of lock , a idle in transaction
connection keep a lock on the table and the reindex was in a wating
status and other connections were in a BIND waiting.
Is it possible to use a reindex in a share lock mode ?? we have a 8.3
version. In higher postgres version the reindex mode change?????
thanks a lot
Silvio Brandani
---
Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalità amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/privacy.html
Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html
L'Azienda non si assume alcuna responsabilità giuridica qualora pervengano da questo indirizzo messaggi estranei all'attività lavorativa o contrari a norme.
--
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: reindex script
@ 2010-11-10 13:14 Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Grittner @ 2010-11-10 13:14 UTC (permalink / raw)
To: pgsql-admin; silvio.brandani@tech.sdb.it
Silvio Brandani wrote:
> Is it possible to use a reindex in a share lock mode ??
Check out the CONCURRENTLY keyword in CREATE INDEX:
http://www.postgresql.org/docs/current/interactive/sql-createindex.html
You could create a duplicate index concurrently, drop the old index,
and rename the new one to the old name.
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: reindex script
@ 2010-11-10 15:57 Silvio Brandani <silvio.brandani@tech.sdb.it>
parent: Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 1 reply; 4+ messages in thread
From: Silvio Brandani @ 2010-11-10 15:57 UTC (permalink / raw)
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-admin
Kevin Grittner ha scritto:
> Silvio Brandani wrote:
>
>
>> Is it possible to use a reindex in a share lock mode ??
>>
>
> Check out the CONCURRENTLY keyword in CREATE INDEX:
>
> http://www.postgresql.org/docs/current/interactive/sql-createindex.html
>
> You could create a duplicate index concurrently, drop the old index,
> and rename the new one to the old name.
>
> -Kevin
>
>
we really need to migrate to version postges 9.x .
thanks,
---
Utilizziamo i dati personali che la riguardano esclusivamente per nostre finalità amministrative e contabili, anche quando li comunichiamo a terzi. Informazioni dettagliate, anche in ordine al Suo diritto di accesso e agli altri Suoi diritti, sono riportate alla pagina http://www.savinodelbene.com/privacy.html
Se avete ricevuto questo messaggio per errore Vi preghiamo di ritornarlo al mittente eliminandolo assieme agli eventuali allegati, ai sensi art. 616 codice penale http://www.savinodelbene.com/privacy/codice_penale_616.html
L'Azienda non si assume alcuna responsabilità giuridica qualora pervengano da questo indirizzo messaggi estranei all'attività lavorativa o contrari a norme.
--
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: reindex script
@ 2010-11-10 16:02 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: Silvio Brandani <silvio.brandani@tech.sdb.it>
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Grittner @ 2010-11-10 16:02 UTC (permalink / raw)
To: Silvio Brandani <silvio.brandani@tech.sdb.it>; +Cc: pgsql-admin
Silvio Brandani <silvio.brandani@tech.sdb.it> wrote:
> Kevin Grittner ha scritto:
>> Check out the CONCURRENTLY keyword in CREATE INDEX:
> we really need to migrate to version postges 9.x .
FWIW, that's been a feature since 8.2.
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-11-10 16:02 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 10:33 reindex script Silvio Brandani <silvio.brandani@tech.sdb.it>
2010-11-10 13:14 Re: reindex script Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-11-10 15:57 ` Silvio Brandani <silvio.brandani@tech.sdb.it>
2010-11-10 16:02 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox