From f2ac654f1401943f563c57c431321d6a409e987b Mon Sep 17 00:00:00 2001 From: tudor Date: Sat, 28 Mar 2026 09:24:15 +0100 Subject: [PATCH 1/2] #943 --- docs/docs/pglite-socket.md | 10 +++++----- packages/pglite-socket/README.md | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/pglite-socket.md b/docs/docs/pglite-socket.md index d2e94476e..efae832e7 100644 --- a/docs/docs/pglite-socket.md +++ b/docs/docs/pglite-socket.md @@ -216,7 +216,7 @@ For better performance in local development, you can use Unix sockets instead of ```bash # Start server on a Unix socket -pglite-server --path=/tmp/pglite.sock --run "npm run dev" --include-database-url +pglite-server --path=/tmp --run "npm run dev" --include-database-url # The DATABASE_URL will be: postgresql://postgres:postgres@/postgres?host=/tmp ``` @@ -229,10 +229,10 @@ Once the server is running, you can connect to it using any PostgreSQL client: ```bash # TCP connection -PGSSLMODE=disable psql -h localhost -p 5432 -d template1 +PGSSLMODE=disable psql -h localhost -p 5432 -d postgres # Unix socket connection (if using --path) -PGSSLMODE=disable psql -h /tmp -d template1 +PGSSLMODE=disable psql -h /tmp -d postgres ``` #### Using Node.js clients @@ -243,7 +243,7 @@ import pg from 'pg' const client = new pg.Client({ host: 'localhost', port: 5432, - database: 'template1', + database: 'postgres', }) await client.connect() @@ -252,7 +252,7 @@ import postgres from 'postgres' const sql = postgres({ host: 'localhost', port: 5432, - database: 'template1', + database: 'postgres', }) // Using environment variable (when using --include-database-url) diff --git a/packages/pglite-socket/README.md b/packages/pglite-socket/README.md index 262871ad6..63c152c0a 100644 --- a/packages/pglite-socket/README.md +++ b/packages/pglite-socket/README.md @@ -211,7 +211,7 @@ For better performance in local development, you can use Unix sockets instead of ```bash # Start server on a Unix socket -pglite-server --path=/tmp/pglite.sock --run "npm run dev" --include-database-url +pglite-server --path=/tmp --run "npm run dev" --include-database-url # The DATABASE_URL will be: postgresql://postgres:postgres@/postgres?host=/tmp ``` @@ -223,7 +223,7 @@ Once the server is running, you can connect to it using any PostgreSQL client: #### Using psql ```bash -PGSSLMODE=disable psql -h localhost -p 5432 -d template1 +PGSSLMODE=disable psql -h localhost -p 5432 -d postgres ``` #### Using Node.js clients @@ -234,7 +234,7 @@ import pg from 'pg' const client = new pg.Client({ host: 'localhost', port: 5432, - database: 'template1' + database: 'postgres' }) await client.connect() @@ -243,7 +243,7 @@ import postgres from 'postgres' const sql = postgres({ host: 'localhost', port: 5432, - database: 'template1' + database: 'postgres' }) // Using environment variable (when using --include-database-url) From c861fb30ef4c2c34fe8c3bae4621ad48ee125b9a Mon Sep 17 00:00:00 2001 From: tudor Date: Sat, 28 Mar 2026 09:29:22 +0100 Subject: [PATCH 2/2] docs --- docs/docs/pglite-socket.md | 2 +- packages/pglite-socket/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/pglite-socket.md b/docs/docs/pglite-socket.md index efae832e7..e4bed0b67 100644 --- a/docs/docs/pglite-socket.md +++ b/docs/docs/pglite-socket.md @@ -216,7 +216,7 @@ For better performance in local development, you can use Unix sockets instead of ```bash # Start server on a Unix socket -pglite-server --path=/tmp --run "npm run dev" --include-database-url +pglite-server --path=/tmp/.s.PGSQL.5432 --run "npm run dev" --include-database-url # The DATABASE_URL will be: postgresql://postgres:postgres@/postgres?host=/tmp ``` diff --git a/packages/pglite-socket/README.md b/packages/pglite-socket/README.md index 63c152c0a..84559f94a 100644 --- a/packages/pglite-socket/README.md +++ b/packages/pglite-socket/README.md @@ -211,7 +211,7 @@ For better performance in local development, you can use Unix sockets instead of ```bash # Start server on a Unix socket -pglite-server --path=/tmp --run "npm run dev" --include-database-url +pglite-server --path=/tmp/.s.PGSQL.5432 --run "npm run dev" --include-database-url # The DATABASE_URL will be: postgresql://postgres:postgres@/postgres?host=/tmp ```