Skip to main content
added 7 characters in body
Source Link
Vivek S.
  • 22.3k
  • 9
  • 71
  • 87

I have created aan index.sql file which contains index creating script index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

iI have consolidated all table's index creating script to a file called index.sql iI need to run the entire script at a time,is is it possible to execute the index.sql file using psql

database : PostgreSQL

created a index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

i have consolidated all table's index creating script to a file called index.sql i need to run the entire script at a time,is it possible to execute the index.sql file using psql

database : PostgreSQL

I have created an index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

I have consolidated all table's index creating script to a file called index.sql I need to run the entire script at a time, is it possible to execute the index.sql file using psql

added 1 character in body
Source Link
Milen A. Radev
  • 63.3k
  • 22
  • 111
  • 113

created a index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

i have consolidated all table's index creating script to a file called index.sql i need to run the entire script at a time,is it possible to execute the index.sql file using psql

database : PostgrSQLPostgreSQL

created a index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

i have consolidated all table's index creating script to a file called index.sql i need to run the entire script at a time,is it possible to execute the index.sql file using psql

database : PostgrSQL

created a index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

i have consolidated all table's index creating script to a file called index.sql i need to run the entire script at a time,is it possible to execute the index.sql file using psql

database : PostgreSQL

Source Link
Vivek S.
  • 22.3k
  • 9
  • 71
  • 87

How to execute *.sql file using psql

created a index.sql file which contains index creating script for 95 table

for example

DROP INDEX IF EXISTS gtab03_vrctrlid_idx cascade;
CREATE UNIQUE INDEX gtab03_vrctrlid_idx ON gtab03 USING btree (vrctrlid);

i have consolidated all table's index creating script to a file called index.sql i need to run the entire script at a time,is it possible to execute the index.sql file using psql

database : PostgrSQL