1
0
Fork 0
mirror of https://git.postgresql.org/git/postgresql.git synced 2026-07-27 16:23:17 +02:00
This is the PostgreSQL git repository.
  • C 84.3%
  • PLpgSQL 6.2%
  • Perl 5%
  • Yacc 1.2%
  • Meson 0.7%
  • Other 2.4%
Find a file
Tom Lane 7090c696cc Deparse FOR PORTION OF using the range column's current name.
Commit 8e72d914c recorded the range column's name in ForPortionOfExpr
and used that for deparsing FOR PORTION OF.  This gives the wrong
answer if the ForPortionOfExpr is saved in a rule or SQL function and
then the column gets renamed.  Drop the ForPortionOfExpr.range_name
field; instead fetch the current column name from the catalogs when
needed.

Also drop ForPortionOfState.fp_rangeName, which wasn't being used
anywhere.

Full disclosure: an earlier draft of this patch was made with
Claude Opus 4.8.

Reported-by: John Naylor <johncnaylorls@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CANWCAZYFEpJ5Oi45gi4q9Y6LYa4_oiAXxuNNWe-1ym-i0fF8Pw@mail.gmail.com
Backpatch-through: 19
2026-07-27 09:37:04 -04:00
.github ci: Generate crashlogs on Windows 2026-07-17 11:48:35 -04:00
config Revert "Make PL/Tcl require Tcl 8.6 or later" 2026-07-16 12:38:37 +02:00
contrib Message style fixes 2026-07-21 15:32:56 +02:00
doc Fix issues in logical replication sequence synchronization. 2026-07-27 09:06:05 +05:30
src Deparse FOR PORTION OF using the range column's current name. 2026-07-27 09:37:04 -04:00
.dir-locals.el
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.mailmap
aclocal.m4
configure Revert "Make PL/Tcl require Tcl 8.6 or later" 2026-07-16 12:38:37 +02:00
configure.ac Require ICU 55 or later 2026-07-16 12:03:05 +02:00
COPYRIGHT
GNUmakefile.in
HISTORY
Makefile
meson.build meson: Fix ccache issues when using precompiled headers with gcc 2026-07-17 11:25:46 -04:00
meson_options.txt
README.md

PostgreSQL Database Management System

This directory contains the source code distribution of the PostgreSQL database management system.

PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.

Copyright and license information can be found in the file COPYRIGHT.

General documentation about this version of PostgreSQL can be found at https://www.postgresql.org/docs/devel/. In particular, information about building PostgreSQL from the source code can be found at https://www.postgresql.org/docs/devel/installation.html.

The latest version of this software, and related software, may be obtained at https://www.postgresql.org/download/. For more information look at our web site located at https://www.postgresql.org/.