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
we successfully used your tool to rebuild a bloated table on production without any downtime! It shrank from around 400GB down to 100GB.
During the testing phase we had to apply some custom adoptions to the source code which we would like to contribute back 😃
This one handles a bug where an INSERT into the primary table fails during the execution on a large table name ( e.g. this_is_a_table_with_a_very_long_name).
Steps to reproduce
Minimal test setup
drop table if exists "this_is_a_table_with_a_very_long_name";
CREATE TABLE IF NOT EXISTS "this_is_a_table_with_a_very_long_name" (
id int PRIMARY KEY,
"createdOn" TIMESTAMP NOT NULL
);
insert into "this_is_a_table_with_a_very_long_name"("id", "createdOn") values(1, '2012-01-01')
Add a breakpoint
run pg-osc
bundle exec bin/pg-online-schema-change perform --host localhost --dbname postgres --username celonis --alter-statement 'alter table this_is_a_table_with_a_very_long_name alter column id TYPE int'
Run an INSERT
==> Result: The INSERT into the primary table fails
Suggested Solution
Read the real sequence name using SELECT pg_get_serial_sequence(:table, :column)
The text was updated successfully, but these errors were encountered:
Hi pg-osc team,
we successfully used your tool to rebuild a bloated table on production without any downtime! It shrank from around 400GB down to 100GB.
During the testing phase we had to apply some custom adoptions to the source code which we would like to contribute back 😃
This one handles a bug where an INSERT into the primary table fails during the execution on a large table name ( e.g.
this_is_a_table_with_a_very_long_name
).Steps to reproduce
==> Result: The INSERT into the primary table fails
Suggested Solution
Read the real sequence name using
SELECT pg_get_serial_sequence(:table, :column
)The text was updated successfully, but these errors were encountered: