Skip to content

Commit

Permalink
Other todos
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarber committed May 15, 2024
1 parent b5364fb commit 619dc18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/bin/pgcopydb/schema.c
Original file line number Diff line number Diff line change
Expand Up @@ -1897,8 +1897,8 @@ struct FilteringQueries listSourceSequencesSQL[] = {
" left join pg_depend d2 on d2.refobjid = s.seqoid "
" and d2.refclassid = 'pg_class'::regclass "
" and d2.classid = 'pg_attrdef'::regclass "
" join pg_attrdef a on a.oid = d2.objid " /* TODO: is this affected also? */
" join pg_attribute at "
" left join pg_attrdef a on a.oid = d2.objid "
" left join pg_attribute at "
" on at.attrelid = a.adrelid "
" and at.attnum = a.adnum "

Expand Down Expand Up @@ -2079,8 +2079,8 @@ struct FilteringQueries listSourceSequencesSQL[] = {
" left join pg_depend d2 on d2.refobjid = s.seqoid "
" and d2.refclassid = 'pg_class'::regclass "
" and d2.classid = 'pg_attrdef'::regclass "
" join pg_attrdef a on a.oid = d2.objid " /* TODO: does this have the problem also? */
" join pg_attribute at "
" left join pg_attrdef a on a.oid = d2.objid "
" left join pg_attribute at "
" on at.attrelid = a.adrelid "
" and at.attnum = a.adnum "

Expand Down Expand Up @@ -2158,16 +2158,16 @@ struct FilteringQueries listSourceSequencesSQL[] = {
" left join pg_depend d2 on d2.refobjid = s.seqoid "
" and d2.refclassid = 'pg_class'::regclass "
" and d2.classid = 'pg_attrdef'::regclass "
" join pg_attrdef a on a.oid = d2.objid " /* TODO: do we have the problem here also? */
" join pg_attribute at "
" left join pg_attrdef a on a.oid = d2.objid "
" left join pg_attribute at "
" on at.attrelid = a.adrelid "
" and at.attnum = a.adnum "

" left join pg_class r1 on r1.oid = d1.refobjid "
" join pg_namespace rn1 on rn1.oid = r1.relnamespace "
" left join pg_namespace rn1 on rn1.oid = r1.relnamespace "

" left join pg_class r2 on r2.oid = at.attrelid "
" join pg_namespace rn2 on rn2.oid = r2.relnamespace "
" left join pg_namespace rn2 on rn2.oid = r2.relnamespace "

/* exclude-schema */
" left join pg_temp.filter_exclude_schema fn "
Expand Down

0 comments on commit 619dc18

Please sign in to comment.