Re: Refactor recordExtObjInitPriv()

2023-01-17 Thread Peter Eisentraut
On 16.01.23 23:43, Nathan Bossart wrote: On Mon, Jan 16, 2023 at 12:01:47PM +0100, Peter Eisentraut wrote: I have updated the patch as you suggested and split out the aggregate issue into a separate patch for clarity. LGTM committed

Re: Refactor recordExtObjInitPriv()

2023-01-16 Thread Nathan Bossart
On Mon, Jan 16, 2023 at 12:01:47PM +0100, Peter Eisentraut wrote: > I have updated the patch as you suggested and split out the aggregate issue > into a separate patch for clarity. LGTM -- Nathan Bossart Amazon Web Services: https://aws.amazon.com

Re: Refactor recordExtObjInitPriv()

2023-01-16 Thread Peter Eisentraut
On 12.01.23 18:40, Nathan Bossart wrote: On Thu, Jan 12, 2023 at 12:20:50PM -0500, Tom Lane wrote: Peter Eisentraut writes: On 12.01.23 01:04, Nathan Bossart wrote: -classoid == AggregateRelationId || I noticed that AggregateRelationId isn't listed in the ObjectPropert

Re: Refactor recordExtObjInitPriv()

2023-01-12 Thread Nathan Bossart
On Thu, Jan 12, 2023 at 12:20:50PM -0500, Tom Lane wrote: > Peter Eisentraut writes: >> On 12.01.23 01:04, Nathan Bossart wrote: >> - classoid == AggregateRelationId || >>> I noticed that AggregateRelationId isn't listed in the ObjectProperty >>> array, so I think recordExtObjI

Re: Refactor recordExtObjInitPriv()

2023-01-12 Thread Tom Lane
Peter Eisentraut writes: > On 12.01.23 01:04, Nathan Bossart wrote: > - classoid == AggregateRelationId || >> I noticed that AggregateRelationId isn't listed in the ObjectProperty >> array, so I think recordExtObjInitPriv() will begin erroring for that >> classoid instead of i

Re: Refactor recordExtObjInitPriv()

2023-01-12 Thread Peter Eisentraut
On 12.01.23 01:04, Nathan Bossart wrote: -classoid == AggregateRelationId || I noticed that AggregateRelationId isn't listed in the ObjectProperty array, so I think recordExtObjInitPriv() will begin erroring for that classoid instead of ignoring it like we do today. Hmm

Re: Refactor recordExtObjInitPriv()

2023-01-11 Thread Nathan Bossart
On Tue, Dec 27, 2022 at 09:56:10AM +0100, Peter Eisentraut wrote: > Refactor recordExtObjInitPriv(): Instead of half a dozen of > mostly-duplicate conditional branches, write one common one that can handle > most catalogs. We already have all the information we need, such as which > system catalo