mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-23 09:07:46 +02:00
address backup schema greptile feedback
This commit is contained in:
1 parent
ab9a817551
commit
19c71ca39a
1 file changed
+1
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user