Re: ERROR: CREATE DATABASE cannot be executed within a pipeline

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: 396934406 <396934406(at)qq(dot)com>
Cc: pgsql-bugs <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: ERROR: CREATE DATABASE cannot be executed within a pipeline
Date: 2023-05-20 02:17:14
Message-ID: 639879.1684549034@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"=?gb18030?B?Mzk2OTM0NDA2?=" <396934406(at)qq(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Cidy Long 2023-05-21 00:24:30 How to restore database without re-write database and tables owner by using postgres
Previous Message 396934406 2023-05-20 02:06:43 ERROR: CREATE DATABASE cannot be executed within a pipeline