mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
postgres_driver.nim: make sure the partition list ist loaded in correct order (#2548)
This commit is contained in:
parent
70de74a210
commit
51bc92a18d
@ -245,6 +245,7 @@ proc getPartitionsList(
|
|||||||
JOIN pg_namespace nmsp_parent ON nmsp_parent.oid = parent.relnamespace
|
JOIN pg_namespace nmsp_parent ON nmsp_parent.oid = parent.relnamespace
|
||||||
JOIN pg_namespace nmsp_child ON nmsp_child.oid = child.relnamespace
|
JOIN pg_namespace nmsp_child ON nmsp_child.oid = child.relnamespace
|
||||||
WHERE parent.relname='messages'
|
WHERE parent.relname='messages'
|
||||||
|
ORDER BY partition_name ASC
|
||||||
""",
|
""",
|
||||||
newSeq[string](0),
|
newSeq[string](0),
|
||||||
rowCallback,
|
rowCallback,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user