public inbox for [email protected]
help / color / mirror / Atom feedFrom: Magnus Hagander <[email protected]>
To: Célestin Matte <[email protected]>
Cc: PostgreSQL WWW <[email protected]>
Subject: Re: [PATCH] pgarchives: Fix database install procedure: remove redundant tables in schema.sql
Date: Sat, 23 Oct 2021 16:16:13 +0200
Message-ID: <CABUevEy_i1xAKscMv4KZ0=bE8050bBcQfWaNyjwZZBofZx7JgQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Mon, Oct 18, 2021 at 6:19 PM Célestin Matte <[email protected]>
wrote:
> Hello,
>
> While installing pgarchives, I've encountered issues that are addressed in
> this patch.
> Django's model and schema.sql both contain tables that are necessary for
> the execution of the application, but are mutually exclusive.
> This is due to some fields in the "messages" table that cannot be defined
> in
> django, and definition of tables in schema.sql that are already created
> by django.
>
Ugh, yeah that is clearly a mess. I thought we had cleaned that up at some
point, but clearly we haven't, and tracking changse has been inconsistent.
I think the correct solution to the problem is to actually get rid of
loader/sql/schema.sql and move it all into the django migrations. Trying to
keep track of half in one place and half in another is just going to lead
to more problems down the road.
So your removal of messages there is a good start, but adding some columns
back after the fact in a different file is a big ugh. We should just make
all that happen in 0001_initial.py.
Additionally, I have two questions:
> - Where is the "tsparser" parser defined? (See commit e05f813b of
> pgarchives).
> It is used in schema.sql, but I haven't found its definition in the
> pgarchives, pglister or pgweb repositories. Is it an alias to
> pg_catalog.pg_ts_parser?
>
It's this one over here: https://github.com/postgrespro/pg_tsparser
> (I have been able to complete the install procedure by reverting e05f813b,
> but I have no idea what the consequences are for the application)
> - Same question for /usr/share/postgresql/12/tsearch_data/pg_dict.stop
> I've found pg_dict.syn in pgweb, but not this file.
>
This is just a textfile with stop words. interestingly enough the prod
version for the archives just has the word "sql" in it -- I think there was
a great big plan to do somethign good with that, that turned out to never
happen.
--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/;
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;
view thread (4+ messages) latest in thread
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: [PATCH] pgarchives: Fix database install procedure: remove redundant tables in schema.sql
In-Reply-To: <CABUevEy_i1xAKscMv4KZ0=bE8050bBcQfWaNyjwZZBofZx7JgQ@mail.gmail.com>
* 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