Skip to content

Add support for PostgreSQL 17.0 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Supported platforms
`dynamodb_fdw` was developed on Linux, and should run on any
reasonably POSIX-compliant system.

`dynamodb_fdw` is designed to be compatible with PostgreSQL 13 ~ 16.0.
`dynamodb_fdw` is designed to be compatible with PostgreSQL 13 ~ 17.0.

Installation
------------
Expand Down
3 changes: 3 additions & 0 deletions dynamodb_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ dynamodbGetForeignPaths(PlannerInfo *root,
NIL, /* no pathkeys */
baserel->lateral_relids,
NULL, /* no extra plan */
#if PG_VERSION_NUM >= 170000
NIL, /* no fdw_restrictinfo list */
#endif
NIL); /* no fdw_private list */
add_path(baserel, (Path *) path);

Expand Down
5 changes: 5 additions & 0 deletions dynamodb_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,12 @@ dynamodb_convert_to_pg(Oid pgtyp, int pgtypmod, Aws::DynamoDB::Model::AttributeV
if (pgtyp == JSONOID)
{
result = cstring_to_text_with_len(buffer->data, buffer->len);
#if PG_VERSION_NUM >= 170000
JsonLexContext lexctx;
lex = makeJsonLexContext(&lexctx, result, false);
#else
lex = makeJsonLexContext(result, false);
#endif
pg_parse_json(lex, &nullSemAction);
return PointerGetDatum(result);
}
Expand Down