Relative Content

Tag Archive for postgresql

How To Compare Databases When Migrating PostGresSQL

This question was migrated from Stack Overflow because it can be answered on Database Administrators Stack Exchange. Migrated 8 hours ago. Our sysops team is migrating our PostGresSQL database to Aurora. During our QA and UAT testing period we are checking for any unforeseen data issues or anomalies. We want to make sure that all […]

How To Compare Databases When Migrating PostGresSQL

This question was migrated from Stack Overflow because it can be answered on Database Administrators Stack Exchange. Migrated 8 hours ago. Our sysops team is migrating our PostGresSQL database to Aurora. During our QA and UAT testing period we are checking for any unforeseen data issues or anomalies. We want to make sure that all […]

How To Compare Databases When Migrating PostGresSQL

This question was migrated from Stack Overflow because it can be answered on Database Administrators Stack Exchange. Migrated 8 hours ago. Our sysops team is migrating our PostGresSQL database to Aurora. During our QA and UAT testing period we are checking for any unforeseen data issues or anomalies. We want to make sure that all […]

How To Compare Databases When Migrating PostGresSQL

This question was migrated from Stack Overflow because it can be answered on Database Administrators Stack Exchange. Migrated 8 hours ago. Our sysops team is migrating our PostGresSQL database to Aurora. During our QA and UAT testing period we are checking for any unforeseen data issues or anomalies. We want to make sure that all […]

Create table in postgres with `like` renames index, but `alter table rename` does not

I have an update process where I create a copy of a table, make changes to it and swap it with the original table at the end.
I create the table with create table ... (like ...). This copies all indexes and renames them. In my example below I create the table temp_test from test and an existing index, with the table name as prefix is renamed to match the new table name:

Create table in postgres with `like` renames index, but `alter table rename` does not

I have an update process where I create a copy of a table, make changes to it and swap it with the original table at the end.
I create the table with create table ... (like ...). This copies all indexes and renames them. In my example below I create the table temp_test from test and an existing index, with the table name as prefix is renamed to match the new table name:

Create table in postgres with `like` renames index, but `alter table rename` does not

I have an update process where I create a copy of a table, make changes to it and swap it with the original table at the end.
I create the table with create table ... (like ...). This copies all indexes and renames them. In my example below I create the table temp_test from test and an existing index, with the table name as prefix is renamed to match the new table name: