I have 50 databases. All the table schema in all the databases are the same. If I have a new column to be added to one table, I will have to run 50 times to update in all databases. This is very difficult all the time.
Is there an editor for postgres where there is a way to execute a query in all databases?
Currently, I am using dbeaver. I have to change the connection all the time and execute the query. Please help.
Example: I had to alter a table by adding a column. ALTER TABLE table-name ADD new-column-name column-definition;
It is very difficult to execute for 50 databases.
psqlto run the ALTER TABLE script.