From 49f4cba713bedf6ce907cc89794f2567befed396 Mon Sep 17 00:00:00 2001 From: Jonathan Fischoff Date: Mon, 6 Jul 2020 19:26:35 -0400 Subject: [PATCH] Better partial index #104 (#105) --- CHANGELOG.md | 3 +++ package.yaml | 2 +- src/Hasql/Queue/Migrate.hs | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab553f1..f2092e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ Changelog for hasql-queue +- 1.2.0.2 + - Better partial index #104 + - 1.2.0.1 - Update README.md diff --git a/package.yaml b/package.yaml index ba32b35..eb36226 100644 --- a/package.yaml +++ b/package.yaml @@ -1,5 +1,5 @@ name: hasql-queue -version: '1.2.0.1' +version: '1.2.0.2' synopsis: A PostgreSQL backed queue description: A PostgreSQL backed queue. Please see README.md category: Web diff --git a/src/Hasql/Queue/Migrate.hs b/src/Hasql/Queue/Migrate.hs index 435d1fe..821fba8 100644 --- a/src/Hasql/Queue/Migrate.hs +++ b/src/Hasql/Queue/Migrate.hs @@ -59,7 +59,7 @@ migrationQueryString valueType = [i| , value ${valueType} NOT NULL ); - CREATE INDEX IF NOT EXISTS active_modified_at_idx ON payloads USING btree (modified_at, state) + CREATE INDEX IF NOT EXISTS active_modified_at_idx ON payloads USING btree (modified_at) WHERE (state = 'enqueued'); |]