From: Tom Lane <tgl@sss.pgh.pa.us>
To: 396934406 <396934406@qq.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: ERROR: CREATE DATABASE cannot be executed within a pipeline
Date: Fri, 19 May 2023 22:17:14 -0400
Message-ID: <639879.1684549034@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_BD6B866E25069560051D16A1EEA07A4F2908@qq.com>
References: <tencent_BD6B866E25069560051D16A1EEA07A4F2908@qq.com>
"=?gb18030?B?Mzk2OTM0NDA2?=" <396934406@qq.com> writes:
> When executing DROP DATABASE or CREATE DATABASE statements in JDBC,
> other statements cannot be included
This restriction is intentional. Previous versions failed to enforce it
fully, but you were at serious hazard of problems, up to and including
database corruption, if you exploited the missing check.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, 396934406@qq.com, pgsql-bugs@lists.postgresql.org
Subject: Re: ERROR: CREATE DATABASE cannot be executed within a pipeline
In-Reply-To: <639879.1684549034@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox