SQL script helping to resolve the OPDS purging issue currently present in Circulation Manager.
How to use the script:
- Clone the repository:
git clone https://github.com/vbessonov/circulation-purge-script.git
- Open the script in your favourite editor:
vi circulation-purge-script/circulation-purge-script.sql
- Replace
v_data_source_name
with the name of the data source you want to purge. - Create a dump of the database:
pg_dump dbname > outfile
- Run the script:
psql -f circulation-purge-script/circulation-purge-script.sql
NOTE: You might want to use --single-transaction
option to wrap all the commands in transaction:
psql --single-transaction -f circulation-purge-script/circulation-purge-script.sql