Alright, for anyone else reading this in the future, here’s how you do it:
// Enter the container
./launcher enter app
// Use the postgres user
su postgres
// Access the Database
psql discourse
// Needs to have a semi-column at the end
select * from tags where name like '%e-commerce%';
// Tip: press the Q key after a query to go back.
Here’s what I’m getting:
Looks like there are two tags with the same slug.
I’ve also checked my table for duplicates using this:
SELECT name, COUNT(*)
FROM tags
GROUP BY name
HAVING COUNT(*) > 1;
Which returned this:
I’ve deleted all the duplicates and will try to rebuild.
Update
The rebuild process worked! God damned, these udpates scare the shit out of me.
A big thank you to @pfaffman and @RGJ, your pointers were very helpful!

