Add const to values and nulls arguments

Started by Peter Eisentrautover 2 years ago4 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

There are a lot of Datum *values, bool *nulls argument pairs that should
really be const. The 0001 patch makes those changes. Some of these
hunks depend on each other.

The 0002 patch, which I'm not proposing to commit at this time, makes
similar changes but in a way that breaks the table and index AM APIs.
So I'm just including that here in case anyone wonders, why didn't you
touch those. And also maybe if we ever change that API incompatibly we
could throw this one in then.

Attachments:

0001-Add-const-to-values-and-nulls-arguments.patchtext/plain; charset=UTF-8; name=0001-Add-const-to-values-and-nulls-arguments.patchDownload+83-84
0002-WIP-Add-const-to-values-and-nulls-arguments-with-ext.patchtext/plain; charset=UTF-8; name=0002-WIP-Add-const-to-values-and-nulls-arguments-with-ext.patchDownload+56-57
#2Aleksander Alekseev
aleksander@timescale.com
In reply to: Peter Eisentraut (#1)
Re: Add const to values and nulls arguments

Hi,

There are a lot of Datum *values, bool *nulls argument pairs that should
really be const. The 0001 patch makes those changes. Some of these
hunks depend on each other.

The 0002 patch, which I'm not proposing to commit at this time, makes
similar changes but in a way that breaks the table and index AM APIs.
So I'm just including that here in case anyone wonders, why didn't you
touch those. And also maybe if we ever change that API incompatibly we
could throw this one in then.

0001 looks good to me and passes the tests in several environments,
not surprisingly. Let's merge it.

--
Best regards,
Aleksander Alekseev

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Aleksander Alekseev (#2)
Re: Add const to values and nulls arguments

On 06.10.23 16:51, Aleksander Alekseev wrote:

There are a lot of Datum *values, bool *nulls argument pairs that should
really be const. The 0001 patch makes those changes. Some of these
hunks depend on each other.

The 0002 patch, which I'm not proposing to commit at this time, makes
similar changes but in a way that breaks the table and index AM APIs.
So I'm just including that here in case anyone wonders, why didn't you
touch those. And also maybe if we ever change that API incompatibly we
could throw this one in then.

0001 looks good to me and passes the tests in several environments,
not surprisingly. Let's merge it.

done

#4Aleksander Alekseev
aleksander@timescale.com
In reply to: Peter Eisentraut (#3)
Re: Add const to values and nulls arguments

Hi,

The 0002 patch, which I'm not proposing to commit at this time, makes
similar changes but in a way that breaks the table and index AM APIs.
So I'm just including that here in case anyone wonders, why didn't you
touch those. And also maybe if we ever change that API incompatibly we
could throw this one in then.

0001 looks good to me and passes the tests in several environments,
not surprisingly. Let's merge it.

done

Great. FWIW changing the index AM API in this particular aspect
doesn't strike me as such a terrible idea.

--
Best regards,
Aleksander Alekseev