Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wLR6v-001mM4-0X for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2026 19:43:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wLR6t-00B1fM-2P for pgsql-bugs@arkaria.postgresql.org; Fri, 08 May 2026 19:43:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wLQtj-00AzA7-1A for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2026 19:30:07 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wLQtg-00000000rDF-45zc for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2026 19:30:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=NcVsFo1QARMz38f89fMMZ7ZllsCD/QmWSodkEBFRENE=; b=1zmQlYwqEVf2itPMXpBGm5koxW TBqR4dxG7+PQy5VmNrg3GEZPntNpB+Uno23X+7pR9S8ngvgyu4mX9Zzv0BuE8QA/DF6yR/afit5EX agXdCRtTLrXzAU9UiYnCRZ6g2EovCa9AVihFd/my1f75ZEw9zWh15pWQTCA267jBt65WvvkyRyc7o 8A75330eSipdFcOz3nyk/B9fTlnxRNvVf4AAh12c/5ChjoCHgh8Eva1DhBMJ/qV59tRADSDFfNZlb tLJq4QGJsDah5BXOJbICUw/W3Msazc77Of+c8PqC8gAxVyEzkrTc7g3F0WGV/WmoufKbEVU4qAn92 moOVDMGw==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wLQtg-002TT0-1H for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2026 19:30:05 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wLQtf-006pKV-0Z for pgsql-bugs@lists.postgresql.org; Fri, 08 May 2026 19:30:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19473: regression error in dblink: another command is already in progress To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: o15611@gmail.com Reply-To: o15611@gmail.com, pgsql-bugs@lists.postgresql.org Date: Fri, 08 May 2026 19:29:44 +0000 Message-ID: <19473-92f01422b9220412@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19473 Logged by: Oleg Ivanov Email address: o15611@gmail.com PostgreSQL version: 18.3 Operating system: Linux Description: =20 Testcase: SELECT * FROM dblink('dbname=3Dpostgres user=3Dpostgres', $$ select 7; $$ )= as (col1 int); SELECT * FROM dblink_connect('connection1', 'host=3D/var/run/postgresql port=3D5432'); SELECT * FROM dblink_send_query('connection1', $$ select 8 from pg_sleep(1); $$ ); SELECT dblink_is_busy('connection1'); SELECT * FROM dblink_get_result('connection1') as t(col1 int); --- SELECT dblink_is_busy('connection1'); SELECT * FROM dblink_exec('connection1', $$ CHECKPOINT; $$); SELECT * FROM dblink_disconnect('connection1'); col1 ------ 7 (1 row) dblink_connect ---------------- OK (1 row) dblink_send_query ------------------- 1 (1 row) dblink_is_busy ---------------- 1 (1 row) col1 ------ 8 (1 row) ERROR: another command is already in progress CONTEXT: while executing command on dblink connection named "connection1" dblink_disconnect ------------------- OK (1 row) There was no error in 16 version. The error appeared in 17 version. It seems, there is a regression bug. The workaround is to uncomment a commented statement.