pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Convert macros to static inline functions (block.h)
10+ messages / 2 participants
[nested] [flat]

* pgsql: Convert macros to static inline functions (block.h)
@ 2022-07-07 06:51  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-07 06:51 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (block.h)

Remove BlockIdIsValid(), which wasn't used and is unnecessary.

Remove BlockIdCopy(), which wasn't used and can be done by struct
assignment.

(BlockIdEquals() also isn't used, but seems reasonable to keep
around.)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d63d957e330c611f7a8c0ed02e4407f40f975026

Modified Files
--------------
src/include/storage/block.h | 53 ++++++++++++++++++++-------------------------
1 file changed, 23 insertions(+), 30 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (bufpage.h)
@ 2022-07-11 05:29  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-11 05:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (bufpage.h)

Remove PageIsValid() and PageSizeIsValid(), which weren't used and
seem unnecessary.

Some code using these formerly-macros needs some adjustments because
it was previously playing loose with the Page vs. PageHeader types,
which is no longer possible with the functions instead of macros.

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2cd2569c72b8920048e35c31c9be30a6170e1410

Modified Files
--------------
contrib/pageinspect/rawpage.c       |  24 ++--
src/backend/storage/page/bufpage.c  |  18 +--
src/bin/pg_checksums/pg_checksums.c |   2 +-
src/include/storage/bufpage.h       | 257 ++++++++++++++++++++++--------------
src/include/storage/checksum_impl.h |   2 +-
5 files changed, 182 insertions(+), 121 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (itemptr.h)
@ 2022-07-13 12:54  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-13 12:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (itemptr.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aeb767ca0b0243d0c8c0eae2e1a4390b49ebb66d

Modified Files
--------------
src/include/storage/itemptr.h | 129 ++++++++++++++++++++++++------------------
1 file changed, 73 insertions(+), 56 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (bufmgr.h)
@ 2022-07-13 12:54  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-13 12:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (bufmgr.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9c727360bcc77cf88693129cd6e610b752fdd3d1

Modified Files
--------------
src/include/storage/bufmgr.h | 59 +++++++++++++++++++++++++++-----------------
1 file changed, 36 insertions(+), 23 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (xlog_internal.h)
@ 2022-07-15 13:03  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-15 13:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (xlog_internal.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/507ba16b28c724046551ef8757ebccb8b4fb6da6

Modified Files
--------------
src/include/access/xlog_internal.h | 154 +++++++++++++++++++++++--------------
1 file changed, 96 insertions(+), 58 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (tupmacs.h)
@ 2022-07-18 06:06  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-18 06:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (tupmacs.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f58d7073b7750d58b5d53232f0d6a967f902b78f

Modified Files
--------------
src/include/access/itup.h    |   2 +-
src/include/access/tupmacs.h | 154 ++++++++++++++++---------------------------
2 files changed, 58 insertions(+), 98 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (itup.h)
@ 2022-07-19 05:33  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-07-19 05:33 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (itup.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/14a8bd98274aaf51912b29cbb869696fc825da00

Modified Files
--------------
src/include/access/itup.h | 117 ++++++++++++++++++++++++----------------------
1 file changed, 60 insertions(+), 57 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (buf_internals.h)
@ 2022-07-27 18:08  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Robert Haas @ 2022-07-27 18:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (buf_internals.h)

Dilip Kumar, reviewed by Vignesh C, Ashutosh Sharma, and me.

Discussion: http://postgr.es/m/CAFiTN-tYbM7D+2UGiNc2kAFMSQTa5FTeYvmg-Vj2HvPdVw2Gvg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3ac88fddd92cc3fd8475a2f5f33837dc18d2057b

Modified Files
--------------
src/backend/storage/buffer/buf_init.c |   2 +-
src/backend/storage/buffer/bufmgr.c   |  16 ++--
src/backend/storage/buffer/localbuf.c |  12 +--
src/include/storage/buf_internals.h   | 158 +++++++++++++++++++++-------------
4 files changed, 112 insertions(+), 76 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (rel.h)
@ 2022-10-07 14:20  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2022-10-07 14:20 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (rel.h)

Reviewed-by: Amul Sul <sulamul@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3edc71ec043865c735cc7cd67df1c0e211fa97dd

Modified Files
--------------
src/include/utils/rel.h | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* pgsql: Convert macros to static inline functions (htup_details.h, itup.
@ 2025-01-23 11:22  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2025-01-23 11:22 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Convert macros to static inline functions (htup_details.h, itup.h)

Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/34694ec888d6783c3222134305a86e533b43071d

Modified Files
--------------
contrib/pageinspect/heapfuncs.c   |  15 +-
src/include/access/htup_details.h | 543 +++++++++++++++++++++++---------------
src/include/access/itup.h         |  20 +-
3 files changed, 352 insertions(+), 226 deletions(-)



^ permalink  raw  reply  [nested|flat] 10+ messages in thread


end of thread, other threads:[~2025-01-23 11:22 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 06:51 pgsql: Convert macros to static inline functions (block.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-11 05:29 pgsql: Convert macros to static inline functions (bufpage.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-13 12:54 pgsql: Convert macros to static inline functions (itemptr.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-13 12:54 pgsql: Convert macros to static inline functions (bufmgr.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-15 13:03 pgsql: Convert macros to static inline functions (xlog_internal.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-18 06:06 pgsql: Convert macros to static inline functions (tupmacs.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-19 05:33 pgsql: Convert macros to static inline functions (itup.h) Peter Eisentraut <peter@eisentraut.org>
2022-07-27 18:08 pgsql: Convert macros to static inline functions (buf_internals.h) Robert Haas <rhaas@postgresql.org>
2022-10-07 14:20 pgsql: Convert macros to static inline functions (rel.h) Peter Eisentraut <peter@eisentraut.org>
2025-01-23 11:22 pgsql: Convert macros to static inline functions (htup_details.h, itup. Peter Eisentraut <peter@eisentraut.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox