I have a database with a lot of tables in it. Some of them have names which start with "mytable_". Those tables have some indexes. Now I need to move those indexes also to different server which has similar tables.
I would like to have a script which will create all those indexes that are in given tables on my local server.
Also I would like to make it this way that if this index is already created it will not crash.
How can it be done in Postgres (pg admin)