From cf47c4ed52c561ceb8720550b9fee7bd7d3339ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 4 Jun 2020 16:56:05 -0700 Subject: [PATCH] Remove indexes and add expression index for tic_v8 plx --- schema/sdss5db/catalogdb/tic/v8/tic_v8_index.sql | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/schema/sdss5db/catalogdb/tic/v8/tic_v8_index.sql b/schema/sdss5db/catalogdb/tic/v8/tic_v8_index.sql index c6a723da..52016e41 100644 --- a/schema/sdss5db/catalogdb/tic/v8/tic_v8_index.sql +++ b/schema/sdss5db/catalogdb/tic/v8/tic_v8_index.sql @@ -41,10 +41,4 @@ ALTER INDEX catalogdb.tic_v8_q3c_ang2ipix_idx ALTER COLUMN q3c_ang2ipix SET STAT -- For Solar Neighbourhood Census -CREATE INDEX CONCURRENTLY tic_v8_sqrt_pow_gallong_303_gallat_44 - ON catalogdb.tic_v8 (sqrt(pow(gallong - 303.2, 2) + 2 * pow(gallat + 44.4, 2))); - -CREATE INDEX CONCURRENTLY tic_v8_sqrt_pow_gallong_280_gallat_33 - ON catalogdb.tic_v8 (sqrt(pow(gallong - 280.3, 2) + 2 * pow(gallat + 33.0, 2))); - -CREATE INDEX CONCURRENTLY ON catalogdb.tic_v8 (plx, e_plx); +CREATE INDEX CONCURRENTLY tic_v8_plx_minus_e_plx ON catalogdb.tic_v8 ((plx-e_plx));