public inbox for [email protected]  
help / color / mirror / Atom feed
From: Célestin Matte <[email protected]>
To: [email protected]
Cc: Magnus Hagander <[email protected]>
Subject: Re: [PATCHES] pgarchives: merge schema.sql into Django's model
Date: Mon, 17 Jul 2023 14:39:52 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

Adding the patch mentioned in another thread [1], as a bugfix to the patch creating two indexes on list_threads(listid)

[1] https://www.postgresql.org/message-id/4999fcd4-7b9e-3d25-42fa-1b322c3867a0%40cmatte.me
-- 
Célestin Matte


Attachments:

  [text/x-patch] 0004-Bugfix-there-shouldn-t-be-two-indexes-on-list_thread.patch (1.3K, 2-0004-Bugfix-there-shouldn-t-be-two-indexes-on-list_thread.patch)
  download | inline diff:
From d55ccbb2312917a3af982b1120c6d9a17013cb78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9lestin=20Matte?= <[email protected]>
Date: Mon, 17 Jul 2023 14:35:22 +0200
Subject: [PATCH 4/4] Bugfix: there shouldn't be two indexes on
 list_threads(listid)

---
 django/archives/mailarchives/migrations/0005_merge_schema.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/django/archives/mailarchives/migrations/0005_merge_schema.py b/django/archives/mailarchives/migrations/0005_merge_schema.py
index ef38743..ffe0509 100644
--- a/django/archives/mailarchives/migrations/0005_merge_schema.py
+++ b/django/archives/mailarchives/migrations/0005_merge_schema.py
@@ -98,7 +98,6 @@ class Migration(migrations.Migration):
         migrations.RunSQL("CREATE INDEX idx_messages_parentid ON messages(parentid);"),
         migrations.RunSQL("CREATE SEQUENCE threadid_seq;"),
         migrations.RunSQL("CREATE UNIQUE INDEX idx_unresolved_msgid_message ON unresolved_messages(msgid, message);"),
-        migrations.RunSQL("CREATE INDEX list_threads_listid_idx ON list_threads(listid);"),
         migrations.RunSQL("CREATE INDEX idx_attachments_msg ON attachments(message);"),
         migrations.RunSQL("ALTER TABLE loaderrors ALTER COLUMN dat SET DEFAULT NOW();"),
         migrations.RunSQL("""
-- 
2.41.0



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: [PATCHES] pgarchives: merge schema.sql into Django's model
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox