Content-Length: 285196 | pFad | http://github.com/postgrespro/postgres/commit/788e799ed4ee9a0e87f18e0426418622972a4de4
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf03889 commit 788e799Copy full SHA for 788e799
src/bin/psql/common.c
@@ -1643,6 +1643,24 @@ command_no_begin(const char *query)
1643
return true;
1644
if (wordlen == 10 && pg_strncasecmp(query, "tablespace", 10) == 0)
1645
1646
+
1647
+ /* DROP INDEX CONCURRENTLY isn't allowed in xacts */
1648
+ if (wordlen == 5 && pg_strncasecmp(query, "index", 5) == 0)
1649
+ {
1650
+ query += wordlen;
1651
1652
+ query = skip_white_space(query);
1653
1654
+ wordlen = 0;
1655
+ while (isalpha((unsigned char) query[wordlen]))
1656
+ wordlen += PQmblen(&query[wordlen], pset.encoding);
1657
1658
+ if (wordlen == 12 && pg_strncasecmp(query, "concurrently", 12) == 0)
1659
+ return true;
1660
1661
+ return false;
1662
+ }
1663
1664
return false;
1665
}
1666
Fetched URL: http://github.com/postgrespro/postgres/commit/788e799ed4ee9a0e87f18e0426418622972a4de4
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments