Mar - Apr 2019

5 commits
Support foreign keys that reference partitioned tables
3 Apr 2019Alvaro Herreramaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #542 of 2 reviewers saw the final version

The implementation matches #54, with parentConstraint renamed to parentConstr and declaration formatting cleaned up in tablecmds.c. The commit expands isolation and foreign_key regression coverage, corrects test comments and schema names, and normalizes SQL capitalization.

  • Amit Langotesaw the final versiontrailerAmit reviewed recursion and constraint handling, supplied the fixes in #38, identified the psql issue in #43, and tested the final submission successfully in #55.
  • Jesper Pedersensaw the final versiontrailerJesper tested successive versions, investigated upgrade and dependency behavior, and confirmed that #54 passed check-world and his tests in #56.
Fix partitioned index creation bug with dropped columns
26 Mar 2019Alvaro Herreramaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 more
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #40

Takes the standalone indexing fix from #40, retaining the parent-table attribute-map length correction and whitespace cleanup. It omits the proposed CompareIndexInfo bounds-check change and adds indexing.sql/indexing.out fixtures for pg_upgrade coverage.

Fix dependency recording bug for partitioned PKs
21 Mar 2019Alvaro Herreramaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #32

The index.c changes exactly match #32, making index_constraint_create return the constraint address without clobbering it during dependency recording. The commit adds regression objects in indexing.sql and indexing.out to expose the problem through pg_upgrade.

Add index_get_partition convenience function
20 Mar 2019Alvaro Herreramaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+1 more
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #232 of 2 reviewers saw the final version

Commits the index_get_partition preparatory patch from #23, leaving the other two series components outstanding. The partition.c helper, tablecmds.c caller replacement, and partition.h declaration match that component.

  • Amit Langotesaw the final versiontrailerAmit specifically reviewed the index_get_partition component of #12 and proposed the function-comment wording in #13, which appears in the committed version.
  • Jesper Pedersensaw the final versiontrailerJesper tested #6, requested moving index_get_partition to partition.c in #8, and later ran the series in #15, with only light changes to this helper afterward.
Restore RI trigger sanity check
20 Mar 2019Alvaro Herreramaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+2 more
LLM analysis, 98% surewritten from the discussion, no matching patch

Restores the referencing-side relation checks in ri_FetchConstraintInfo, consistent with Alvaro's decision in #10 to reinstate sanity checking. No attachment contains this restoration: #23 still disables the existing check, while #33 relies on the already-committed fix.

Credits across 5 commits

Author
Alvaro Herrera3 LLM4
Reviewer
Amit Langote2
Jesper Pedersen2
Committer
Alvaro Herrera5

N LLM means N of the credits come from LLM analysis, not from commit trailers.