https://github.com/numtel/pg-server-9.4-linux-x64
PostgreSQL Server 9.4 for Linux x86 64-bit NPM Package
https://github.com/numtel/pg-server-9.4-linux-x64
Last synced: 6 months ago
JSON representation
PostgreSQL Server 9.4 for Linux x86 64-bit NPM Package
- Host: GitHub
- URL: https://github.com/numtel/pg-server-9.4-linux-x64
- Owner: numtel
- Created: 2015-05-07T10:57:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-14T21:52:08.000Z (almost 11 years ago)
- Last Synced: 2025-02-15T04:42:39.189Z (about 1 year ago)
- Language: PLpgSQL
- Size: 35.9 MB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostgreSQL Server 9.4 for Linux x86 64-bit
Install and run [PostgreSQL server](http://www.postgresql.org) under the current user inside of the application directory.
```
npm install pg-server-9.4-linux-x64
```
Provides function for spawning PostgreSQL server instance specifying the data directory and configuration options. Returns [`ChildProcess`](https://nodejs.org/api/child_process.html#child_process_class_childprocess).
```javascript
var startServer = require('pg-server-9.4-linux-x64');
/*
* Start the PostgreSQL server
* @param {String} dataDir Directory will be initialized if does not exist
* @param {Object} config Settings for postgresql.conf
*/
var postgres = startServer('dbdata', { port: 12345 });
postgres.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});
postgres.stderr.on('data', function (data) {
console.log('stderr: ' + data);
});
postgres.on('close', function (code) {
console.log('child process exited with code ' + code);
});
// Later on, stop server...
postgres.kill();
```
## Default Settings
* Default user name will be the the same as the user name for on the system.
* Default password is `numtel` as specified in the `defaultpw` file.
* Default database is `postgres`.
* Default port is `5432` (may be changed with `port` configuration setting).
## License
PostgreSQL