Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aSCRM-0000jP-Me for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Feb 2016 23:38:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aSCRM-0004BS-5Q for pgsql-bugs@arkaria.postgresql.org; Sat, 06 Feb 2016 23:38:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aSCQk-0003UZ-7b for pgsql-bugs@postgresql.org; Sat, 06 Feb 2016 23:38:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aSCQd-00076v-Nc for pgsql-bugs@postgresql.org; Sat, 06 Feb 2016 23:38:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u16NbwcA031613; Sat, 6 Feb 2016 18:37:58 -0500 From: Tom Lane To: =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= cc: =?UTF-8?B?QW5kcmVzIEZyZXVuZA==?= , =?UTF-8?B?cGdzcWwtYnVncw==?= Subject: Re: =?UTF-8?B?UmVbMl06IFtCVUdTXSBTZWdmYXVsdCBpbiBNZW1vcnlDb250ZXh0QWxsb2M=?= In-reply-to: <1453891638.831641165@f352.i.mail.ru> References: <1453890275.241158212@f404.i.mail.ru> <20160127103533.GA17919@awork2.anarazel.de> <1453891638.831641165@f352.i.mail.ru> Comments: In-reply-to =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= message dated "Wed, 27 Jan 2016 13:47:18 +0300" Date: Sat, 06 Feb 2016 18:37:58 -0500 Message-ID: <31612.1454801878@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org =?UTF-8?B?RG1pdHJpeSBTYXJhZmFubmlrb3Y=?= writes: >> That's, uh, weird. TopTransactionContext should never be NULL here. This >> is with a stock 9.4.5, without any further extensions configured? > It is a stock 9.4.5 with pg_buffercache (1.0) and plv8 (1.4.0) installed extensions. Both this and the other behavior you reported sure seem like "can't happen" situations. I do have a theory though: I think you are doing something that is spawning multiple threads inside the backend, and then the backend logic goes nuts because it's expecting to be single-threaded. pg_buffercache wouldn't do that, and a quick google search suggests that V8 knows nothing of threads either. Have you got anything else going on in there? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs