mirror of
https://github.com/postgres/postgres.git
synced 2026-05-21 01:37:50 -04:00
build_remattrmap() deparses a list of remote column names for a query
that retrieves attribute stats for them from the remote server.
Previously, it did so by using the array-literal syntax with each column
name individually quoted by quote_identifier(), causing the query to
fail on the remote server with a syntax error or no results when that
column name included a single quote or backslash, as quote_identifier()
doesn't escape those characters, making the query invalid or incorrect.
Fix by switching from the array-literal syntax to the ARRAY constructor
syntax with each column name individually quoted by
deparseStringLiteral().
Oversight in commit
|
||
|---|---|---|
| .. | ||
| eval_plan_qual.out | ||
| postgres_fdw.out | ||
| query_cancel.out | ||
| query_cancel_1.out | ||