Re: dropdb --force - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: dropdb --force
Date
Msg-id CAFj8pRDCYdCpZ2Qve0Bi-r_XYkkGJqb_xgQOajVs8u5SQwR22w@mail.gmail.com
Whole thread Raw
In response to Re: dropdb --force  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers


pá 20. 9. 2019 v 5:10 odesílatel Thomas Munro <thomas.munro@gmail.com> napsal:
On Thu, Sep 19, 2019 at 6:44 AM Pavel Stehule <pavel.stehule@gmail.com> wrote:
> I am sending updated version

+    appendPQExpBuffer(&sql, "DROP DATABASE %s%s%s;",
+                      (force ? " (FORCE) " : ""),

An extra space before (FORCE) caused the test to fail:

# 2019-09-19 19:07:22.203 UTC [1516] 050_dropdb.pl LOG: statement:
DROP DATABASE (FORCE) foobar2;

#     doesn't match '(?^:statement: DROP DATABASE (FORCE) foobar2)'

should be fixed now.

thank you for echo

Pavel


--
Thomas Munro
https://enterprisedb.com

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: dropdb --force
Next
From: Tom Lane
Date:
Subject: Re: some PostgreSQL 12 release notes comments