{"id":26895180,"url":"https://github.com/apuokenas/postgresql-manager","last_synced_at":"2026-04-09T12:56:44.013Z","repository":{"id":285349088,"uuid":"957803992","full_name":"apuokenas/postgresql-manager","owner":"apuokenas","description":"A collection of user-friendly scripts for managing PostgreSQL on macOS with a simple double-click interface.","archived":false,"fork":false,"pushed_at":"2025-03-31T08:03:22.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T08:24:44.308Z","etag":null,"topics":["macos","management","postgres","postgresql","scripts","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apuokenas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-31T06:50:31.000Z","updated_at":"2025-03-31T08:23:02.000Z","dependencies_parsed_at":"2025-03-31T08:34:47.842Z","dependency_job_id":null,"html_url":"https://github.com/apuokenas/postgresql-manager","commit_stats":null,"previous_names":["apuokenas/postgresql-manager"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apuokenas%2Fpostgresql-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apuokenas%2Fpostgresql-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apuokenas%2Fpostgresql-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apuokenas%2Fpostgresql-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apuokenas","download_url":"https://codeload.github.com/apuokenas/postgresql-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246569008,"owners_count":20798341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","management","postgres","postgresql","scripts","shell","terminal"],"created_at":"2025-04-01T01:54:25.414Z","updated_at":"2025-12-30T23:13:37.046Z","avatar_url":"https://github.com/apuokenas.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL Manager\n\nA collection of user-friendly scripts for managing PostgreSQL on macOS with a simple double-click interface.\n\n## Overview\n\nThis repository contains macOS command scripts that make PostgreSQL management visual and straightforward. Instead of remembering terminal commands, you can double-click these scripts to:\n\n- **Start PostgreSQL** server with visible output\n- **Stop PostgreSQL** server gracefully\n- **Check PostgreSQL** server status\n\nAll operations run in dedicated Terminal windows with clear status messages and proper cleanup.\n\n## Requirements\n\n- macOS (any modern version)\n- PostgreSQL 17 installed via [Homebrew](https://brew.sh)\n  - `brew install postgresql@17`\n- Default installation paths (customizable)\n\n## Installation\n\n1. Clone this repository:\n\n```\ngit clone https://github.com/apuokenas/postgresql-manager.git\n```\n\n2. Make the scripts executable:\n\n```bash\nchmod +x *.command\n```\n\n3. Optional: Move scripts to a convenient location (Desktop, Applications folder, or Dock)\n\n```bash\n# Move to Applications folder (optional)\ncp *.command \"/Applications/PostgreSQL Manager/\"\n```\n\n## Usage\n\n### Starting the PostgreSQL Server\n\nDouble-click [start_postgres.command](https://github.com/apuokenas/postgresql-manager/blob/master/start_postgres.command):\n\n- Opens a dedicated Terminal window\n- Shows real-time server output\n- Press Ctrl+C when you want to stop the server\n\n### Checking PostgreSQL Status\n\nDouble-click [check_postgres.command](https://github.com/apuokenas/postgresql-manager/blob/master/check_postgres.command):\n\n- Shows whether PostgreSQL is currently running\n- Provides status information and exit code interpretation\n- Useful for quick verification before performing operations\n\n### Stopping the PostgreSQL Server\n\nDouble-click [stop_postgres.command](https://github.com/apuokenas/postgresql-manager/blob/master/stop_postgres.command):\n\n- Gracefully shuts down the running PostgreSQL server\n- Shows shutdown status and confirmation\n- The Terminal window automatically closes after acknowledgment\n\n## How It Works\n\nThese scripts provide a user-friendly interface to PostgreSQL's command-line tools:\n\n- Validate prerequisites before performing operations\n- Create temporary execution scripts with proper error handling\n- Use AppleScript for Terminal window management\n- Clean up temporary resources automatically\n\n## Customization\n\nIf you have a non-standard PostgreSQL installation, edit these variables at the top of each script:\n\n```bash\nPG_VERSION=\"17\" # Change to your PostgreSQL version\nPG_BINDIR=\"/usr/local/opt/postgresql@${PG_VERSION}/bin\" # Path to binaries\nPG_DATADIR=\"/usr/local/var/postgresql@${PG_VERSION}\" # Path to data directory\n```\n\n## Troubleshooting\n\nCommon issues:\n\n- **\"PostgreSQL binaries not found\"**: Verify your installation path or update the `PG_BINDIR` variable\n- **\"PostgreSQL is already running\"**: Use [check_postgres.command](https://github.com/apuokenas/postgresql-manager/blob/master/check_postgres.command) to verify status before starting\n- **\"PostgreSQL is not currently running\"**: Server must be running before you can stop it\n- **macOS security warnings**: Right-click the script and select \"Open\" for first-time execution\n\n## Contributing\n\nContributions are welcome! Please feel free to submit pull requests with:\n\n- Additional PostgreSQL management functionality\n- UI improvements\n- Documentation updates\n- Bug fixes\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/apuokenas/postgresql-manager/blob/master/LICENSE) file for details.\n\n## Author\n\nApuokėnas © 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapuokenas%2Fpostgresql-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapuokenas%2Fpostgresql-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapuokenas%2Fpostgresql-manager/lists"}