address backup schema greptile feedback

This commit is contained in:
Dotta committed 2026-05-01 10:39:44 -05:00
1 parent ab9a817551
commit 19c71ca39a
1 file changed
+1 -3
+1 -3
View File
@@ -241,8 +241,7 @@ function tableKey(schemaName: string, tableName: string): string {
function nonSystemSchemaPredicate(identifier: string): string {
return `${identifier} NOT IN ('pg_catalog', 'information_schema')
AND ${identifier} NOT LIKE 'pg_toast%'
AND ${identifier} NOT LIKE 'pg_temp_%'
AND ${identifier} NOT LIKE 'pg_toast_temp_%'`;
AND ${identifier} NOT LIKE 'pg_temp_%'`;
}
function hasBackupTransforms(opts: RunDatabaseBackupOptions): boolean {
@@ -612,7 +611,6 @@ export async function runDatabaseBackup(opts: RunDatabaseBackupOptions): Promise
);
const schemas = new Set<string>(includedSchemas);
for (const table of tables) schemas.add(table.schema_name);
for (const seq of sequences) schemas.add(seq.sequence_schema);
const extraSchemas = [...schemas].filter((schemaName) => schemaName !== "public");
if (extraSchemas.length > 0) {