Thread

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Test most StaticAssert macros in C++ extensions

  2. Change remaining StaticAssertStmt() to StaticAssertDecl()

  1. [PATCH v1] Replace deprecated StaticAssertStmt() with StaticAssertDecl()

    Bertrand Drouvot <bertranddrouvot.pg@gmail.com> — 2026-04-14T12:54:45Z

    Commit 451650eaacd5 added a test for the StaticAssertStmt() macro in C++
    extensions, but it was marked as deprecated in commit d50c86e74375.
    
    There is no need to replace it with StaticAssertDecl() (like 66ad764c8d5 did),
    as the exact same StaticAssertDecl() test has also be added in 451650eaacd5.
    
    Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
    Discussion: https://postgr.es/m/adeQc3I/4dwpeqEb@ip-10-97-1-34.eu-west-3.compute.internal
    ---
     src/test/modules/test_cplusplusext/test_cplusplusext.cpp | 1 -
     1 file changed, 1 deletion(-)
     100.0% src/test/modules/test_cplusplusext/
    
    diff --git a/src/test/modules/test_cplusplusext/test_cplusplusext.cpp b/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
    index 93cd7dd07f7..ca66c69fe34 100644
    --- a/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
    +++ b/src/test/modules/test_cplusplusext/test_cplusplusext.cpp
    @@ -51,7 +51,6 @@ test_cplusplus_add(PG_FUNCTION_ARGS)
     		(void) rtr;
     	}
     
    -	StaticAssertStmt(sizeof(int32) == 4, "int32 should be 4 bytes");
     	(void) StaticAssertExpr(sizeof(int64) == 8, "int64 should be 8 bytes");
     
     	list_free(list);
    -- 
    2.34.1
    
    
    --zif7kU/5BHXU/TDM--