You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-09-12 13:12:03 1766 INFO copydb_schema.c:270 Splitting source candidate tables larger than 47 MB
2023-09-12 13:12:03 1766 SQL pgsql.c:1493 [SOURCE 1767] with key_bounds (min, max) as ( select min("iD"), max("iD") from ""Sp1eCial .Char"".""Tabl e.1testing"" ), t (parts) as ( select ceil(bytes::float / $1) as parts from pgcopydb_table_size where oid = $2 \tunion all \tselect 1 as parts \torder by parts desc \tlimit 1 ), ranges(n, parts, a, b) as ( select n, parts, x as a, coalesce((lead(x, 1) over(order by n)) - 1, max) as b from key_bounds, t, generate_series(min, max, ((max-min+1)/parts)::bigint + 1) with ordinality as s(x, n) ) select n, parts, a, b, b-a+1 as count from ranges order by n;
2023-09-12 13:12:03 1766 SQL pgsql.c:1506 [SOURCE 1767] '50000000', '378873'
2023-09-12 13:12:03 1766 DEBUG pgsql.c:2033 Postgres result status is PGRES_FATAL_ERROR
2023-09-12 13:12:03 1766 ERROR pgsql.c:1920 [SOURCE 1767] ERROR: zero-length delimited identifier at or near """"
2023-09-12 13:12:03 1766 ERROR pgsql.c:1920 [SOURCE 1767] LINE 1: ...x) as ( select min("iD"), max("iD") from ""Sp1eCial...
2023-09-12 13:12:03 1766 ERROR pgsql.c:1920 [SOURCE 1767] ^
2023-09-12 13:12:03 1766 ERROR pgsql.c:1931 [SOURCE 1767] SQL query: with key_bounds (min, max) as ( select min("iD"), max("iD") from ""Sp1eCial .Char"".""Tabl e.1testing"" ), t (parts) as ( select ceil(bytes::float / $1) as parts from pgcopydb_table_size where oid = $2 \tunion all \tselect 1 as parts \torder by parts desc \tlimit 1 ), ranges(n, parts, a, b) as ( select n, parts, x as a, coalesce((lead(x, 1) over(order by n)) - 1, max) as b from key_bounds, t, generate_series(min, max, ((max-min+1)/parts)::bigint + 1) with ordinality as s(x, n) ) select n, parts, a, b, b-a+1 as count from ranges order by n
2023-09-12 13:12:03 1766 ERROR pgsql.c:1939 [SOURCE 1767] SQL params: '50000000', '378873'
2023-09-12 13:12:03 1766 ERROR schema.c:3155 Failed to compute partition list for table ""Sp1eCial .Char"".""Tabl e.1testing""
2023-09-12 13:12:03 1766 ERROR cli_clone_follow.c:460 Failed to clone source database, see above for details
The text was updated successfully, but these errors were encountered:
in schema_list_partitions but that wouldn't solve the issue because we didn't do the format %I for partKey. While I can fix it for partkey, we might face the original issue for column in COPY statements too.
I think we can fix this issue first, later we can take care of attributes. On quick search for other locations where we use \"%s\".\"%s\", src/bin/pgcopydb/indexes.c is the only other place. Regex for searching ^(?!\s*log).*\\"%s\\".*\\"%s\\".*
Schema
Error
The text was updated successfully, but these errors were encountered: