X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B7608D1E0FD for ; Sun, 14 Mar 2004 23:10:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84181-09 for ; Sun, 14 Mar 2004 19:10:11 -0400 (AST) Received: from kserver17.erfurt12.de (unknown [80.190.233.41]) by svr1.postgresql.org (Postfix) with ESMTP id 8368FD1DCF1 for ; Sun, 14 Mar 2004 19:10:02 -0400 (AST) Received: by kserver17.erfurt12.de (Postfix, from userid 642) id BA6D35A816F; Sun, 14 Mar 2004 22:43:41 +0100 (CET) To: pgsql-performance@postgresql.org From: postgres@countup.de Subject: Deadlocks... Content-Type: text/html; charset=iso-8859-1; Message-Id: <20040314214341.BA6D35A816F@kserver17.erfurt12.de> Date: Sun, 14 Mar 2004 22:43:41 +0100 (CET) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.3 tagged_above=0.0 required=5.0 tests=BAYES_01, HTML_MESSAGE, MIME_HEADER_CTYPE_ONLY, MIME_HTML_ONLY, NO_REAL_NAME X-Spam-Level: * X-Archive-Number: 200403/189 X-Sequence-Number: 6045 Hi,

i have 2 Functions, one ist called by page visitors (something about 2,000 times / 1 hour)
and the other just by the admin (let say 1 time per hour or per login)
i often get a deadlock error after calling the admin function
yes they try to access the same table somewhere in the function code.
The Admin function can take up to 20-30 seconds and visitor function just 20 to 30 ms
What can i do there? Have i to study a lot about locking tables or something else?

Thanks for your Help
regards,
Boris