From: | Paul Jungwirth <pj(at)illuminatedcomputing(dot)com> |
---|---|
To: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
Cc: | jian he <jian(dot)universality(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, vignesh C <vignesh21(at)gmail(dot)com> |
Subject: | Re: SQL:2011 application time |
Date: | 2025-01-03 01:47:02 |
Message-ID: | 8f995a4c-64e3-40cd-bfed-06b54a280d36@illuminatedcomputing.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 12/10/24 06:40, Peter Eisentraut wrote:
> On 07.12.24 20:29, Paul Jungwirth wrote:
>> These five patches all look good to me.
>>
>> Note that my tests already include a section for REPLICA IDENTITY FULL, which passed. But the
>> subscriber was using a SeqScan to look up tuples to update.
>>
>> Here are the steps (mostly just because it was confusing for me at first): First in
>> FindUsableIndexForReplicaIdentityFull, we would call IsIndexUsableForReplicaIdentityFull, get back
>> false, and decide there was no index to use. Then in FindReplTupleInLocalRel, localidxoid was 0,
>> so we woudln't call IsIndexUsableForReplicaIdentityFull at all.
>>
>> After applying the five patches, I can see that we choose the index and call
>> IsIndexUsableForReplicaIdentityFull from both sites. This should make applying changes a lot faster.
>
> I have committed these. I will continue with reviewing v45-0002 and following now.
Here is a rebase for the remaining patches. There are some small changes, but almost all the work
was fixing the final PERIOD patch (mostly to work with the new cataloged NOT NULL code).
The most important patches are the first two, since they fix bugs in the already-committed FK code.
I'd love to see FOR PORTION OF get into v18 also, but I'm not sure how much work remains there. It
don't think I've received feedback from a committer yet. It felt ready to commit to me, but after
the FK fixes here I don't like how I'm getting both an operator and a proc for intersection, in
different places. It seems like I should be able to make do with just one in all places. But since
intersect is neither a search operator nor an ordering operator, it can't appear in pg_amop, so you
can't look it up by stratnum. Maybe the intersect support func should return an operator oid, not a
proc oid, and then I can use pg_operator.oprcode to call its proc directly. If that sounds good I'll
make the changes.
Rebased to e28033fe1a.
--
Paul ~{:-)
pj(at)illuminatedcomputing(dot)com
Attachment | Content-Type | Size |
---|---|---|
v46-0001-Add-without_portion-GiST-support-proc.patch | text/x-patch | 41.1 KB |
v46-0002-Fix-NOACTION-temporal-foreign-keys-when-the-refe.patch | text/x-patch | 23.8 KB |
v46-0003-Fix-RESTRICT-temporal-foreign-keys-when-the-refe.patch | text/x-patch | 30.1 KB |
v46-0004-Add-intersect-support-func-for-FOR-PORTION-OF.patch | text/x-patch | 8.2 KB |
v46-0005-Add-UPDATE-DELETE-FOR-PORTION-OF.patch | text/x-patch | 197.7 KB |
v46-0006-Add-CASCADE-SET-NULL-SET-DEFAULT-for-temporal-fo.patch | text/x-patch | 209.8 KB |
v46-0007-Expose-FOR-PORTION-OF-to-plpgsql-triggers.patch | text/x-patch | 13.2 KB |
v46-0008-Add-PERIODs.patch | text/x-patch | 590.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-01-03 01:58:01 | Re: Fwd: Re: A new look at old NFS readdir() problems? |
Previous Message | Peter Smith | 2025-01-03 01:22:30 | Re: Logical Replication of sequences |