Socket
Book a DemoInstallSign in
Socket

@posthog/postgres-plugin

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

@posthog/postgres-plugin

Export PostHog events to a PostgreSQL instance on ingestion.

unpublished
npmnpm
Version
0.0.8
Version published
Weekly downloads
9
800%
Maintainers
0
Weekly downloads
 
Created
Source

PostgreSQL Plugin

Export PostHog events to a PostgreSQL instance on ingestion.

Instructions

1. Make sure PostHog can access your instance

Wherever your instance is hosted, make sure it is set to accept incoming connections so that we can connect to the database and insert events. If this is not possible in your case, you should consider using our S3 plugin and then setting up your own system for getting data into your Postgres instance.

2. Create a user with table creation priviledges

We need to create a new table to store events and execute INSERT queries. You can and should block us from doing anything else on any other tables. Giving us table creation permissions should be enough to ensure this:

CREATE USER posthog WITH PASSWORD '123456yZ';
GRANT CREATE ON DATABASE your_database TO posthog;

3. Add the connection details at the plugin configuration step in PostHog

FAQs

Package last updated on 24 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts