Issue #1051 Upgrade script for bufrmos invalid locations.
Change-Id: I78b29e173654d0066852b650d4d791920fc07977 Former-commit-id:e58bdcc85e
[formerlyce726f0b0d
] [formerlydb8989822e
] [formerly0a8543b6fa
[formerlydb8989822e
[formerly ec3d2599a9c792be08ffdb67cb0de9330b37b04a]]] Former-commit-id:0a8543b6fa
Former-commit-id: 54d479ac9d7276f257ed7bcafc4efb81dc0fa597 [formerly313d8554cc
] Former-commit-id:e8dabda2ba
This commit is contained in:
parent
8cfdc7b3d6
commit
c7a54bed9d
1 changed files with 11 additions and 0 deletions
11
deltaScripts/13.6.1/bufrmosValidation.sh
Normal file
11
deltaScripts/13.6.1/bufrmosValidation.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
# DR #1051 remove invalid bufrmos locations
|
||||
|
||||
PSQL="/awips2/psql/bin/psql"
|
||||
|
||||
${PSQL} -U awips -d metadata -c "DELETE FROM bufrmosmrf WHERE location_id IN (SELECT DISTINCT id FROM bufrmos_location WHERE latitude > 90 or latitude < -90);"
|
||||
${PSQL} -U awips -d metadata -c "DELETE FROM bufrmoshpc WHERE location_id IN (SELECT DISTINCT id FROM bufrmos_location WHERE latitude > 90 or latitude < -90);"
|
||||
${PSQL} -U awips -d metadata -c "DELETE FROM bufrmos_location WHERE latitude > 90 or latitude < -90;"
|
||||
${PSQL} -U awips -d metadata -c "VACUUM FULL ANALYZE bufrmosmrf;"
|
||||
${PSQL} -U awips -d metadata -c "VACUUM FULL ANALYZE bufrmoshpc;"
|
||||
${PSQL} -U awips -d metadata -c "VACUUM FULL ANALYZE bufrmos_location;"
|
Loading…
Add table
Reference in a new issue