]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Resolve unknown-type literals in property expressions
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 8 Jul 2026 08:11:11 +0000 (10:11 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 8 Jul 2026 08:25:09 +0000 (10:25 +0200)
commitb820c623dd5090ef69b8b8151a0b152f5d976fed
tree43894794cdd21947c0643b1ce2ee31b0f7ab7e11
parent7883ea13ffdc6c657923031d80b2505d08f51e33
Resolve unknown-type literals in property expressions

When a string literal is provided as a property expression, the data
type of the property was set to "unknown", which may lead to various
failures when the property is used in GRAPH_TABLE or when its data
type is compared against other properties with the same name.  To fix
this, call resolveTargetListUnknowns() on the targetlist of new
properties being added to resolve unknown type literals.

Reported-by: Noah Misch <noah@leadboat.com>
Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/20260630173053.51.noahmisch%40microsoft.com
src/backend/commands/propgraphcmds.c
src/test/regress/expected/create_property_graph.out
src/test/regress/sql/create_property_graph.sql