-
Notifications
You must be signed in to change notification settings - Fork 2
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/6087~1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/6087
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 4 commits
- 15 files changed
- 2 contributors
Commits on Jan 2, 2026
-
add relOid field to CreateTrigStmt
add the relOid field to CreateTrigStmt is very useful for copying or recreating a CreateTrigStmt. Copying CreateTrigStmt node can happen like CREATE TABLE LIKE INCLUDING TRIGGERS. To let ALTER COLUMN SET DATA TYPE cope with trigger dependencies, we need get the trigger definition then do parse analysis for CreateTrigStmt again. in function CreateTrigger, we have below comments: ``` * relOid, if nonzero, is the relation on which the trigger should be * created. If zero, the name provided in the statement will be looked up. ``` We can move the "relOid" argument out of the CreateTrigger function’s parameter list and instead store it in CreateTrigStmt. The following are the reason why: 1. CreateTrigger has too many arguments; reducing the argument list by one is a good thing. 2. To implement CREATE TABLE LIKE INCLUDING TRIGGERS, we need to pass the new relation OID to CreateTrigger, but it's not doable from ProcessUtilitySlow->CreateTrigger. 3. To allow ALTER COLUMN SET DATA TYPE to cope with trigger dependencies, we also need to pass the new relation OID to CreateTrigger, which for the same reason as above cannot be done from ProcessUtilitySlow. This can help to reduce repeated lookup issue. discussion: https://postgr.es/m/CACJufxHJAr2FjbeB6ghg_-N5dxX5JVnjKSLOUxOyt4TeaAWQkg@mail.gmail.com discussion: https://postgr.es/m/CACJufxGkqYrmwMdvUOUPet0443oUTgF_dKCpw3TfJiutfuywAQ@mail.gmail.com commitfest: https://commitfest.postgresql.org/patch/6087 commitfest: https://commitfest.postgresql.org/patch/6089
Configuration menu - View commit details
-
Copy full SHA for 32b5df1 - Browse repository at this point
Copy the full SHA 32b5df1View commit details -
add constrrelOid field to CreateTrigStmt
In the spirit of the change made to add the relOid field to CreateTrigStmt. discussion: https://postgr.es/m/CACJufxHJAr2FjbeB6ghg_-N5dxX5JVnjKSLOUxOyt4TeaAWQkg@mail.gmail.com discussion: https://postgr.es/m/CACJufxGkqYrmwMdvUOUPet0443oUTgF_dKCpw3TfJiutfuywAQ@mail.gmail.com commitfest: https://commitfest.postgresql.org/patch/6087 commitfest: https://commitfest.postgresql.org/patch/6089
Configuration menu - View commit details
-
Copy full SHA for 65593d1 - Browse repository at this point
Copy the full SHA 65593d1View commit details -
CREATE TABLE LIKE INCLUDING TRIGGERS
This will copy all source table's trigger to the new table. Internal trigger (such as foreign key associated trigger) won't being copied to new table. However this command will fail if the source table's trigger contain whole-row reference. Trigger's comment will copied to new table, if INCLUDING COMMENTS is specified. CREATE FOREIGN TABLE LIKE is also supported. discussion: https://postgr.es/m/CACJufxHJAr2FjbeB6ghg_-N5dxX5JVnjKSLOUxOyt4TeaAWQkg@mail.gmail.com commitfest: https://commitfest.postgresql.org/patch/6087
Configuration menu - View commit details
-
Copy full SHA for 3305745 - Browse repository at this point
Copy the full SHA 3305745View commit details -
[CF 6087] v4 - CREATE TABLE LIKE INCLUDING TRIGGERS
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/6087 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/CACJufxHMYq2ZqvOhoSKUmx+wZUo=HixjfgGKDJ6L4cdCvwh2VA@mail.gmail.com Author(s): Jian He
Commitfest Bot committedJan 2, 2026 Configuration menu - View commit details
-
Copy full SHA for 5096eff - Browse repository at this point
Copy the full SHA 5096effView commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff cf/6087~1...cf/6087