Skip to content
Draft
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
1 change: 1 addition & 0 deletions postgres/changelog.d/24293.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support for Postgres 19.
6 changes: 4 additions & 2 deletions postgres/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ mypy-deps = [

[[envs.default.matrix]]
python = ["3.13"]
version = ["9.6", "10.0", "11.0", "12.17", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0"]
version = ["9.6", "10.0", "11.0", "12.17", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "19.0"]
locale = ["UTF8"]


# We only support SQLASCII encoding in 10+
[[envs.default.matrix]]
python = ["3.13"]
version = ["10.0", "11.0", "12.17", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0"]
version = ["10.0", "11.0", "12.17", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "19.0"]
locale = ["C"]

[envs.default.overrides]
Expand All @@ -33,6 +33,8 @@ matrix.version.env-vars = [
{ key = "POSTGRES_VERSION", value = "16", if = ["16.0"] },
{ key = "POSTGRES_VERSION", value = "17", if = ["17.0"] },
{ key = "POSTGRES_VERSION", value = "18", if = ["18.0"] },
{ key = "POSTGRES_VERSION", value = "19", if = ["19.0"] },
{ key = "POSTGRES_IMAGE_TAG", value = "19beta1", if = ["19.0"] },
]
matrix.locale.env-vars = [
{ key = "POSTGRES_LOCALE", value = "C", if = ["C"] },
Expand Down
5 changes: 4 additions & 1 deletion postgres/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@
POSTGRES_VERSION = os.environ.get('POSTGRES_VERSION', None)
POSTGRES_IMAGE = "alpine"
POSTGRES_LOCALE = os.environ.get('POSTGRES_LOCALE', "UTF8")
POSTGRES_IMAGE_TAG = os.environ.get('POSTGRES_IMAGE_TAG', None)

REPLICA_CONTAINER_1_NAME = 'compose-postgres_replica-1'
REPLICA_CONTAINER_2_NAME = 'compose-postgres_replica2-1'
REPLICA_LOGICAL_1_NAME = 'compose-postgres_logical_replica-1'
USING_LATEST = False

if POSTGRES_VERSION is not None:
if POSTGRES_IMAGE_TAG is not None:
POSTGRES_IMAGE = POSTGRES_IMAGE_TAG + "-alpine"
elif POSTGRES_VERSION is not None:
USING_LATEST = POSTGRES_VERSION.endswith('latest')
POSTGRES_IMAGE = POSTGRES_VERSION + "-alpine"

Expand Down
Loading