postgres_driver.nim: make sure the partition list ist loaded in correct order (#2548)

This commit is contained in:
Ivan FB 2024-03-25 18:02:07 +01:00 committed by GitHub
parent 94ff5eab68
commit b5e2edb724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ proc getPartitionsList(
JOIN pg_namespace nmsp_parent ON nmsp_parent.oid = parent.relnamespace
JOIN pg_namespace nmsp_child ON nmsp_child.oid = child.relnamespace
WHERE parent.relname='messages'
ORDER BY partition_name ASC
""",
newSeq[string](0),
rowCallback,