Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 19BBD1337BBA for ; Sat, 19 Feb 2011 12:08:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 00613-04 for ; Sat, 19 Feb 2011 16:08:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5EDFE1337B2F for ; Sat, 19 Feb 2011 12:08:17 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p1JG8ES4028330; Sat, 19 Feb 2011 11:08:14 -0500 (EST) To: Maxim Boguk cc: Robert Haas , pgsql-bugs@postgresql.org Subject: Re: BUG #5798: Some weird error with pl/pgsql procedure In-reply-to: References: <201012210248.oBL2m9sp090535@wwwmaster.postgresql.org> Comments: In-reply-to Maxim Boguk message dated "Sun, 20 Feb 2011 01:13:37 +1300" Date: Sat, 19 Feb 2011 11:08:13 -0500 Message-ID: <28329.1298131693@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/169 X-Sequence-Number: 29441 Maxim Boguk writes: > I finally managed create working slave server with non-stripped Postgresql > 8.4.7 and working gdb. > (sorry for such long delay). > And i can reproduce situation quite easy now, so i managed get stack > backtrace with that error. > What i need to do now? I have some expirience with gbd now but i have no > idea where to look next. Now that you know what query is causing the problem: > #9 0x0000000000673d43 in ProcessQuery (plan=0xdd0998890, > sourceText=0xdd09c5830 "UPDATE ONLY bill.ctrl_servers SET opt = opt > WHERE ctid=ANY($1) RETURNING ctid", params=0xdd09c58c0, > dest=0xdd09de5c8, completionTag=0x7fffffffd4e0 "") at pquery.c:196 it shouldn't be too hard to prepare a self-contained test case so that others can look at this. regards, tom lane