From 06ad4b37f6d5fbeca92952ab700cf66af5996c9a Mon Sep 17 00:00:00 2001 From: Oliver Weichhold Date: Mon, 3 Jan 2022 14:34:59 +0100 Subject: [PATCH] Drop indexes not compatible with timestamptz --- src/Miningcore/Persistence/Postgres/Scripts/createdb.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql b/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql index 440e74147..5cc5f1030 100644 --- a/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql +++ b/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql @@ -105,7 +105,6 @@ CREATE TABLE poolstats ); CREATE INDEX IDX_POOLSTATS_POOL_CREATED on poolstats(poolid, created); -CREATE INDEX IDX_POOLSTATS_POOL_CREATED_HOUR on poolstats(poolid, date_trunc('hour',created)); CREATE TABLE minerstats ( @@ -120,6 +119,4 @@ CREATE TABLE minerstats CREATE INDEX IDX_MINERSTATS_POOL_CREATED on minerstats(poolid, created); CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED on minerstats(poolid, miner, created); -CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED_HOUR on minerstats(poolid, miner, date_trunc('hour',created)); -CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED_DAY on minerstats(poolid, miner, date_trunc('day',created)); CREATE INDEX IDX_MINERSTATS_POOL_MINER_WORKER_CREATED_HASHRATE on minerstats(poolid,miner,worker,created desc,hashrate);