Filter:

Commits in 2023

Commits70 commits of which 11 backported
42Author
0Committer
23Reviewer
10Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
AuthorLLMReviewerReported byMake replace_relid() leave argument unmodified
e0477837committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'Dec 27, 2023
ReviewerREALLOCATE_BITMAPSETS manual compile-time option
7d58f234committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'Dec 27, 2023
ReviewerAdd asserts to bimapset manipulation functions
71a3e8c4committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'Dec 27, 2023
AuthorLLMFix erroneous -Werror=missing-braces on old GCC.
bad0763acommitted by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Erroneous -Werror=missing-braces on old GCCDec 25, 2023
AuthorFix a comment for remove_self_joins_recurse()
0a93f803committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOINDec 24, 2023
AuthorDon't constrain self-join removal due to PHVs
b5fb6736committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOINDec 24, 2023
AuthorHandle PlaceHolderVar case in replace_varno_walker
8a8ed916committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOINDec 24, 2023
AuthorLLMPrevent integer overflow when forming tuple width estimates.
7e1ce2b3committed by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18247: Integer overflow leads to negative widthDec 19, 2023
AuthorUpdate comment for Cardinality typedef
2a607fb8committed by Peter Eisentraut
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Update the comment in nodes.h to cover CardinalityDec 19, 2023
AuthorLLMcompute_bitmap_pages' loop_count parameter should be double not int.
8b965c54committed by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18247: Integer overflow leads to negative widthDec 18, 2023
ReviewerRename ShmemVariableCache to TransamVariables
b31ba531committed by Heikki Linnakangas
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Rename ShmemVariableCache and initialize it in more standard wayDec 08, 2023
ReviewerInitialize ShmemVariableCache like other shmem areas
15916ffbcommitted by Heikki Linnakangas
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Rename ShmemVariableCache and initialize it in more standard wayDec 08, 2023
AuthorFix comment about ressortgrouprefs being unique in setop plans.
10a59925committed by Heikki Linnakangas
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Fix a wrong comment in setrefs.cNov 28, 2023
ReviewerFix comment in tableam.h about GetHeapamTableAmRoutine()
5ad49322committed by Michael Paquier
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Incorrect comment in tableam.h regarding GetHeapamTableAmRoutine()Nov 27, 2023
ReviewerDon't use bms_membership() in cases where we don't need to
930d2b44committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Don't use bms_membership in places where it's not neededNov 27, 2023
Reported byCheck if ii_AmCache is NULL in aminsertcleanup
a82ee7efcommitted by Tomas Vondra
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
brininsert optimization opportunityNov 27, 2023
AuthorFix how SJE checks against PHVs
b7f315c9committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOINNov 10, 2023
AuthorLLMBackportedFix computation of varnullingrels when const-folding field selection.
36f5594ccommitted by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.2
BUG #18184: ERROR: wrong varnullingrels (b) (expected (b 3)) for Var 2/2Nov 09, 2023
AuthorFix the way SJE removes references from PHVs
b44a1708committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOINNov 09, 2023
AuthorLLMReported byFix allocation of UniqueRelInfo
93c85db3committed by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18170: Unexpected error: no relation entry for relid 3Nov 06, 2023
AuthorFix usage of the parse tree for estimate_num_groups() in set operations
ec63622ccommitted by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
BUG #18170: Unexpected error: no relation entry for relid 3Nov 04, 2023
Reported byStabilize postgres_fdw tests on 32-bit machines
b690e5facommitted by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Why is DEFAULT_FDW_TUPLE_COST so insanely low?Nov 02, 2023
AuthorLLMFix missed optimization in relation_excluded_by_constraints().
5d8aa8bccommitted by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Check each of base restriction clauses for constant-FALSE-or-NULLOct 11, 2023
AuthorLLMReplace has_multiple_baserels() with a bitmap test on all_baserels.
14661ba1committed by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Retire has_multiple_baserels()Oct 10, 2023
AuthorReported byFix possible crash in add_paths_to_append_rel()
fc4089f3committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Crash in add_paths_to_append_relOct 10, 2023
ReviewerBackportedStrip off ORDER BY/DISTINCT aggregate pathkeys in create_agg_path
d8a29538committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.1
pg16: XX000: could not find pathkey item to sortOct 09, 2023
AuthorLLMReported byFix another typo in e0b1ee17dc
82a7132fcommitted by Alexander Korotkov
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Fix a typo in _bt_readpageOct 07, 2023
ReviewerProvide FORCE_NULL * and FORCE_NOT_NULL * options for COPY FROM
f6d4c9cfcommitted by Andrew Dunstan
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
COPY FROM FORMAT CSV FORCE_NULL(*) ?Sep 30, 2023
AuthorReplace more MemSet calls with struct initialization
c5b05828committed by Peter Eisentraut
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Should we use MemSet or {0} for struct initialization?Sep 19, 2023
AuthorLLMBackportedTrack nesting depth correctly when drilling down into RECORD Vars.
e0e492e5committed by Tom Lane
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.1REL_15_STABLE15.5REL_14_STABLE14.10REL_13_STABLE13.13+2 more
BUG #18077: PostgreSQL server subprocess crashed by a SELECT statement with WITH clauseSep 15, 2023
AuthorLLMReorder tests in get_cheapest_path_for_pathkeys().
9caf0420committed by Robert Haas
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
A minor adjustment to get_cheapest_path_for_pathkeysSep 07, 2023
Reported byATPrepAddPrimaryKey: ignore non-PK constraints
e09d763ecommitted by Alvaro Herrera
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Assert failure in ATPrepAddPrimaryKeySep 01, 2023
AuthorLLMRe-allow FDWs and custom scan providers to replace joins with pseudoconstant quals.
9e9931d2committed by Etsuro Fujita
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
postgres_fdw: wrong results with self join + enable_nestloop offAug 15, 2023
AuthorBackportedDon't Memoize lateral joins with volatile join conditions
990c3650committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9
Check volatile functions in ppi_clauses for memoize nodeAug 07, 2023
AuthorFix misleading comment in paraminfo_get_equal_hashops
fdd79d89committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Fix a comment in paraminfo_get_equal_hashopsAug 07, 2023
AuthorTidy up join_search_one_level code
6c00d2c9committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Improve join_search_one_level readibilty (one line change)Aug 06, 2023
ReviewerAllow Incremental Sorts on GiST and SP-GiST indexes
625d5b3ccommitted by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Incremental sort for access method with ordered scan support (amcanorderbyop)Jul 04, 2023
AuthorA minor simplification for List manipulation
6d56c501committed by Peter Eisentraut
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Improve list manipulation in several placesJul 03, 2023
ReviewerRemove redundant PARTITION BY columns from WindowClauses
c6510200committed by David Rowley
master17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
Remove WindowClause PARTITION BY items belonging to redundant pathkeysJul 03, 2023
AuthorLLMDefend against bogus parameterization of join input paths.
a798660ecommitted by Tom Lane
master16beta3REL_19_STABLE16beta3REL_18_STABLE16beta3REL_17_STABLE16beta3REL_16_STABLE16beta3
Assert !bms_overlap(joinrel->relids, required_outer)Jun 29, 2023
AuthorBackportedpg_stat_statements: Fix incorrect comment with entry resets
dc73db67committed by Michael Paquier
master16beta3REL_19_STABLE16beta3REL_18_STABLE16beta3REL_17_STABLE16beta3REL_16_STABLE16beta3REL_15_STABLE15.4REL_14_STABLE14.9
Another incorrect comment for pg_stat_statementsJun 28, 2023
AuthorLLMDon't include outer join relids in lateral_relids bitmapsets.
efeb12efcommitted by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
ERROR: wrong varnullingrels (b 3) (expected (b)) for Var 2/1Jun 20, 2023
AuthorLLMCentralize fixups for mismatched nullingrels in nestloop params.
0655c03ecommitted by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
ERROR: wrong varnullingrels (b 3) (expected (b)) for Var 2/1Jun 20, 2023
AuthorLLMWhen removing a left join, clean out references in EquivalenceClasses.
f4c00d13committed by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
BUG #17976: Inconsistent results of SELECT using CASE WHEN clauseJun 15, 2023
ReviewerReplace GUC_UNIT_MEMORY|GUC_UNIT_TIME with GUC_UNIT.
a54fc892committed by Masahiko Sawada
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
Replace (GUC_UNIT_MEMORY | GUC_UNIT_TIME) with GUC_UNIT in guc.cJun 15, 2023
ReviewerBackportedintarray: Prevent out-of-bound memory reads with gist__int_ops
c00fbe89committed by Michael Paquier
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2REL_15_STABLE15.4REL_14_STABLE14.9REL_13_STABLE13.12+2 more
[BUG #17888] Incorrect memory access in gist__int_ops for an input array with many elementsBUG #17888: Incorrect memory access in gist__int_ops for an input array with many elementsJun 15, 2023
AuthorLLMFix "wrong varnullingrels" for Memoize's lateral references, too.
63e4f13dcommitted by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
ERROR: wrong varnullingrels (b 3) (expected (b)) for Var 2/1Jun 13, 2023
AuthorLLMFix "wrong varnullingrels" for subquery nestloop parameters.
bfd332b3committed by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
ERROR: wrong varnullingrels (b 3) (expected (b)) for Var 2/1Jun 12, 2023
ReviewerFix missing word in nbtree/README.
9aee26a4committed by Nathan Bossart
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
Typo in src/backend/access/nbtree/README?Jun 09, 2023
AuthorLLMFix oversight in outer join removal.
9a2dbc61committed by Tom Lane
master16beta2REL_19_STABLE16beta2REL_18_STABLE16beta2REL_17_STABLE16beta2REL_16_STABLE16beta2
ERROR: no relation entry for relid 6Jun 08, 2023
AuthorLLMFix thinko in join removal.
d0f95269committed by Tom Lane
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Clause accidentally pushed down ( Possible bug in Making Vars outer-join aware)May 19, 2023
ReviewerFix overridden callbacks in pg_rewind.
08237056committed by Daniel Gustafsson
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
[pg_rewind] use the passing callback instead of global functionMay 02, 2023
ReviewerBackportedFix crashes with CREATE SCHEMA AUTHORIZATION and schema elements
4dadd660committed by Michael Paquier
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.3REL_14_STABLE14.8REL_13_STABLE13.11+2 more
BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredumpApr 28, 2023
Reported byBackportedAvoid character classification in regex escape parsing.
c04c6c5dcommitted by Jeff Davis
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.3REL_14_STABLE14.8REL_13_STABLE13.11+2 more
Assert failure with ICU supportApr 21, 2023
ReviewerAdjust Valgrind macro usage to protect chunk headers
414d6622committed by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
An oversight in ExecInitAgg for grouping setsProtecting allocator headers with ValgrindApr 14, 2023
ReviewerBackportedFix incorrect partition pruning logic for boolean partitioned tables
e0693fafcommitted by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.3REL_14_STABLE14.8REL_13_STABLE13.11+2 more
Unexpected (wrong?) result querying boolean partitioned table with NULL partitionApr 14, 2023
Reported byFix PHJ match bit initialization.
558c9d75committed by Thomas Munro
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Wrong results from Parallel Hash Full JoinApr 13, 2023
AuthorLLMSupport "Right Anti Join" plan shapes.
16dc2703committed by Tom Lane
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Using each rel as both outer and inner for JOIN_ANTIApr 05, 2023
Reported byFix outdated comments regarding TupleTableSlots
902ecd3bcommitted by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
A structure has changed but comment modifications maybe missedMar 30, 2023
ReviewerFix a couple of typos
88199b9dcommitted by Michael Paquier
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Fix typo plgsql to plpgsql.Mar 21, 2023
ReviewerFix make maintainer-clean with queryjumblefuncs.*.c files in src/backend/nodes/
e8e1f96ccommitted by Michael Paquier
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Missing rules for queryjumblefuncs.{funcs,switch}.c for maintainer-cleanMar 21, 2023
ReviewerFix incorrect comment in preptlist.c
b94c6716committed by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Comment in preptlist.cMar 21, 2023
Reviewerpostgres_fdw: Remove useless if-test in GetConnection().
39a3bdc9committed by Etsuro Fujita
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
postgres_fdw: Useless if-test in GetConnection()Mar 17, 2023
AuthorLLMEnable use of Memoize atop an Append that came from UNION ALL.
9bfd2822committed by Tom Lane
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
A problem about ParamPathInfo for an AppendPathMar 16, 2023
AuthorLLMFix thinkos in have_unsafe_outer_join_ref; reduce to Assert check.
f50f029ccommitted by Tom Lane
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Making Vars outer-join awareFeb 13, 2023
AuthorBackportedFix LATERAL join test in test memoize.sql
b762fed6committed by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.2REL_14_STABLE14.7
Improve LATERAL join case in test memoize.sqlJan 23, 2023
ReviewerHave the planner consider Incremental Sort for DISTINCT
3c6fc582committed by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Allow DISTINCT to use Incremental SortJan 10, 2023
AuthorFix some compiler warnings in aset.c and generation.c
b82557eccommitted by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
Some compiling warningsJan 04, 2023
AuthorFix typo in memutils_memorychunk.h
b23837ddcommitted by David Rowley
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
An oversight in ExecInitAgg for grouping setsJan 03, 2023
AuthorLLMBackportedAvoid reference to nonexistent array element in ExecInitAgg().
92957ed9committed by Tom Lane
master16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1REL_15_STABLE15.2REL_14_STABLE14.7REL_13_STABLE13.10+2 more
An oversight in ExecInitAgg for grouping setsJan 02, 2023