Skip to content

Commit

Permalink
Merge branch 'main' into use-copy-with-binary
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri committed Aug 6, 2024
2 parents 1319365 + 941817e commit b3c06be
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/pgcopydb/schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ struct FilteringQueries listSourceTablesSQL[] = {
" limit 1"
" ) as pkeys on true"

" where relkind in ('r', 'p', 'm') and c.relpersistence in ('p', 'u') "
" where relkind in ('r', 'm') and c.relpersistence in ('p', 'u') "
" and n.nspname !~ '^pg_' and n.nspname <> 'information_schema' "
" and n.nspname !~ 'pgcopydb' "

Expand Down
1 change: 1 addition & 0 deletions tests/filtering/exclude.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ foo.matview_1_exclude_as_table

[exclude-table-data]
foo.matview_1_exclude_data
partitioned_tables.sellers_archive
12 changes: 12 additions & 0 deletions tests/filtering/extra.sql
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ select setval('seq.standalone_smallint_id_seq', 670);

-- A standalone sequence with a minvalue that has not been set
create sequence seq.standalone_minvalue_id_seq minvalue 671;

create schema partitioned_tables;

create table partitioned_tables.sellers (
id bigint,
archive smallint not null
) partition by list (archive);

create table partitioned_tables.sellers_active partition of partitioned_tables.sellers default;
create table partitioned_tables.sellers_archive partition of partitioned_tables.sellers for values in ('1');

insert into partitioned_tables.sellers (id, archive) values (1, 0), (2, 1), (3, 0);
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ nspname | copy
-[ RECORD 3 ]-----------------
nspname | foo
-[ RECORD 4 ]-----------------
nspname | public
nspname | partitioned_tables
-[ RECORD 5 ]-----------------
nspname | schema_name_20_chars
nspname | public
-[ RECORD 6 ]-----------------
nspname | schema_name_20_chars
-[ RECORD 7 ]-----------------
nspname | seq

0 comments on commit b3c06be

Please sign in to comment.