pgserve 2.2.4 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/pgserve-wrapper.cjs +5 -4
- package/bin/postgres-server.js +142 -631
- package/config/logrotate.d/pgserve +47 -0
- package/config/pgaudit.conf +31 -0
- package/package.json +2 -2
- package/scripts/test-npx.sh +32 -10
- package/src/cli-install.cjs +147 -77
- package/src/commands/uninstall.js +241 -0
- package/src/index.js +11 -44
- package/src/lib/admin-json.js +202 -0
- package/src/lib/pm2-args.js +119 -0
- package/src/lib/socket-dir.js +69 -0
- package/src/postgres.js +64 -5
- package/src/admin-client.js +0 -223
- package/src/audit.js +0 -168
- package/src/cluster.js +0 -654
- package/src/control-db.js +0 -330
- package/src/daemon-control.js +0 -468
- package/src/daemon-shared.js +0 -18
- package/src/daemon-tcp.js +0 -297
- package/src/daemon.js +0 -709
- package/src/dashboard.js +0 -217
- package/src/fingerprint.js +0 -479
- package/src/gc.js +0 -351
- package/src/pg-wire.js +0 -869
- package/src/protocol.js +0 -389
- package/src/restore.js +0 -574
- package/src/router.js +0 -546
- package/src/sdk.js +0 -137
- package/src/stats-collector.js +0 -453
- package/src/stats-dashboard.js +0 -401
- package/src/sync.js +0 -335
- package/src/tenancy.js +0 -75
- package/src/tokens.js +0 -102
package/bin/pgserve-wrapper.cjs
CHANGED
|
@@ -65,10 +65,11 @@ if (__subcommand && __installSubcommands.has(__subcommand)) {
|
|
|
65
65
|
process.exit(typeof result === 'number' ? result : 0);
|
|
66
66
|
}
|
|
67
67
|
if (__subcommand === 'serve') {
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
// any flags the operator (or pm2) passed
|
|
71
|
-
|
|
68
|
+
// pgserve singleton (v2.4): the bun-proxy daemon mode is gone. `serve`
|
|
69
|
+
// now aliases to `postmaster` — the direct postgres-supervision entry
|
|
70
|
+
// point. Replacing argv preserves any flags the operator (or pm2) passed
|
|
71
|
+
// after `serve`.
|
|
72
|
+
process.argv[2] = 'postmaster';
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
// Detect platform
|