git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: a99a32e) | patch
Disallow COPY FREEZE on foreign tables.
Thu, 6 Feb 2025 21:23:40 +0000 (15:23 -0600)
Thu, 6 Feb 2025 21:23:40 +0000 (15:23 -0600)
commit 401a6956fa69c9202cbc14c09ba8a9c430b90cac
Disallow COPY FREEZE on foreign tables.

This didn't actually work: the COPY succeeds, but the FREEZE
optimization isn't applied. There doesn't seem to be an easy way
to support FREEZE on foreign tables, so let's follow the precedent
established by commit 5c9a5513a3 by raising an error early. This
is arguably a bug fix, but due to the lack of reports, the minimal
discussion on the mailing list, and the potential to break existing
scripts, I am not back-patching it for now.

Author: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Zhang Mingli <zmlpostgres@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0ujeNgKpE3OrLtR%3DeJGa5LkGMekFzQTwjgw%3DrzaLufQLQ%40mail.gmail.com
doc/src/sgml/ref/copy.sgml diff | blob | blame | history
src/backend/commands/copyfrom.c diff | blob | blame | history
src/test/regress/expected/copy.out diff | blob | blame | history
src/test/regress/sql/copy.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /