Skip to content

Support PG18 #302

@diogotcorreia

Description

@diogotcorreia

Description

Can't build on PG18 BETA 2:

src/tleextension.c:1185:29: error: too many arguments to function call, expected 8, have 9
 1179 |                                 qdesc = CreateQueryDesc(stmt,
      |                                         ~~~~~~~~~~~~~~~
 1180 | #if PG_VERSION_NUM >= 180000
 1181 |                                                                                 NULL,
 1182 | #endif
 1183 |                                                                                 sql,
 1184 |                                                                                 GetActiveSnapshot(), NULL,
 1185 |                                                                                 dest, NULL, NULL, 0);
      |                                                                                                   ^
/nix/store/zhqcfvwnmqrjjpvyggfagqynchh2b44c-postgresql-18beta2-dev/include/server/executor/execdesc.h:59:19: note: 'CreateQueryDesc' declared here
   59 | extern QueryDesc *CreateQueryDesc(PlannedStmt *plannedstmt,
      |                   ^               ~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |                                                                   const char *sourceText,
      |                                                                   ~~~~~~~~~~~~~~~~~~~~~~~
   61 |                                                                   Snapshot snapshot,
      |                                                                   ~~~~~~~~~~~~~~~~~~
   62 |                                                                   Snapshot crosscheck_snapshot,
      |                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   63 |                                                                   DestReceiver *dest,
      |                                                                   ~~~~~~~~~~~~~~~~~~~
   64 |                                                                   ParamListInfo params,
      |                                                                   ~~~~~~~~~~~~~~~~~~~~~
   65 |                                                                   QueryEnvironment *queryEnv,
      |                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   66 |                                                                   int instrument_options);
      |                                                                   ~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
make: *** [<builtin>: src/tleextension.o] Error 1

Note: using this as a tracking issue for this package in nixpkgs.

Analysis

The #289 PR has to be reversed, since the relevant commit upstream has been reverted as well: postgres/postgres@1722d5e#diff-c6b1a39ad0c6141b7f271fd722597f04256bfd5c7b2acb86c03e7d20e6a706a6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions