X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AAA83474E5C for ; Thu, 13 Feb 2003 04:16:47 -0500 (EST) Received: from linux012.intern.cityweb.de (linux012.intern.cityweb.de [195.71.215.252]) by postgresql.org (Postfix) with ESMTP id 8A870474E42 for ; Thu, 13 Feb 2003 04:16:46 -0500 (EST) Received: from zahedi.intern.cityweb.de (zahedi.intern.cityweb.de [193.189.226.198]) by linux012.intern.cityweb.de (8.11.0/8.11.0) with ESMTP id h1D9GgJ21242; Thu, 13 Feb 2003 10:16:45 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Andreas Schmitz Reply-To: a.schmitz@cityweb.de Organization: Cityweb Network To: Tom Lane Subject: Re: ERROR: deadlock detected Date: Thu, 13 Feb 2003 10:04:20 +0100 User-Agent: KMail/1.4.1 Cc: pgsql-admin@postgresql.org References: <200302121557.55277.a.schmitz@cityweb.de> <10575.1045112887@sss.pgh.pa.us> In-Reply-To: <10575.1045112887@sss.pgh.pa.us> MIME-Version: 1.0 Message-Id: <200302131004.20376.a.schmitz@cityweb.de> Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/177 X-Sequence-Number: 7375 On Thursday 13 February 2003 06:08, Tom Lane wrote: > Andreas Schmitz writes: > > I am still working on the newspaper archive project. I started indexing > > the articles with tsearch. Along the long text parts I get a "ERROR:=20 > > deadlock detected" when I try to build the index "update dpa_text set > > titleidx=3Dtxt2txtidx(volltext);". The table has a count of 356437 > > datarows. I already increased the number of locks per transaction. Any > > ideas on that ? > > This does not sound like an out-of-resources kind of problem. Either > you did something wrong or you found a bug. But it's impossible to > tell which. Can you provide a SQL script that reproduces the behavior > you're seeing? Hello Tom, there is not much to provide. It is just the update statement mentioned in = the=20 text above. the table structure i a parent table with titles, authors and= =20 other small infos. two subtables with pictures and text fields are referenc= ed=20 to the parent table. the error occurs on the subtable with the text datatyp= e. newsdb2=3D# \d dpa_text Table "public.dpa_text" Column | Type | Modifiers=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ------------+--------------+-----------------------------------------------= ---------- textid | integer | not null default=20 nextval('"dpa_text_textid_seq"'::text) id | integer | not null volltext | text | not null update_tag | character(1) | default 't' titleidx | txtidx |=20 Indexes: dpa_text_pkey primary key btree (textid), d_te_id_idx btree (id), dpa_text_oid_id_idx btree (oid), dpa_txt_t_idx gist (titleidx) Triggers: RI_ConstraintTrigger_9882551 I am running this on the tables to build the tsearch index: bash-2.03$ less make_dpa_index.sql=20 update dpa set titleidx=3Dtxt2txtidx(dachzeile); update dpa set titleidx=3Dtxt2txtidx(ueberschrift); update dpa set titleidx=3Dtxt2txtidx(zwischentitel); update dpa set titleidx=3Dtxt2txtidx(vorspann); update dpa set titleidx=3Dtxt2txtidx(kurztext); update dpa_text set titleidx=3Dtxt2txtidx(volltext); this produces the output: bash-2.03$ time psql newsdb2