Skip to content

Commit 510173c

Browse files
committed
Postgres: stream while snapshotting.
1 parent d12daac commit 510173c

File tree

5 files changed

+861
-610
lines changed

5 files changed

+861
-610
lines changed

modules/module-postgres/src/api/PostgresRouteAPIAdapter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ LEFT JOIN (
314314
AND NOT a.attisdropped
315315
AND has_column_privilege(tbl.quoted_name, a.attname, 'SELECT, INSERT, UPDATE, REFERENCES')
316316
)
317-
GROUP BY schemaname, tablename, quoted_name`
317+
GROUP BY schemaname, tablename, quoted_name
318+
ORDER BY schemaname, tablename;`
318319
);
319320
await this.typeCache.fetchTypesForSchema();
320321
const rows = pgwire.pgwireRows(results);

0 commit comments

Comments
 (0)