lanterndata / pg

https://pg.lantern.dev
5 stars 0 forks source link
mailing-list postgres postgresql search

PG Mailing List

This project provides scripts for retrieving Postgres mailing list archives, populating a Postgres database with them, and rendering the archives with NextJS.

Getting started

Populate data

Create migration

yarn dbmate new <migration-name>

Run migrations

With DATABASE_URL set in the environment:

yarn dbmate up

Notes for local development

The body_dense_vector column in messages was added and populated using the Lantern dashboard, and is not in the migration files.

pgsql-lists-offline

Source: https://github.com/wsdookadr/pgsql-lists-offline

Downloads mailing list archives for PostgreSQL, PostGIS and pgRouting.

The mailing list archives that will be downloaded are in the mbox format and can be read using any mbox-aware email client (for example mutt ).

Dependencies

sudo apt-get install parallel curl

Usage

./pgsql-lists-offline.sh -l

To download a list (for example pgsql-general):

./pgsql-lists-offline.sh -g pgsql-general

To download a list for a particular month:

./pgsql-lists-offline.sh -g pgsql-general -m 202403