{"id":15019633,"url":"https://github.com/funbringer/smart_psqlrc","last_synced_at":"2026-02-25T18:05:17.745Z","repository":{"id":69542717,"uuid":"105877833","full_name":"funbringer/smart_psqlrc","owner":"funbringer","description":"Smart .psqlrc with a neat customizable prompt","archived":false,"fork":false,"pushed_at":"2018-05-14T11:21:33.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T01:34:02.079Z","etag":null,"topics":["postgres","postgresql","psql","psqlrc"],"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/funbringer.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":"2017-10-05T10:39:39.000Z","updated_at":"2025-06-05T02:16:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"96d5ee95-7a5c-41f3-b1f3-dc59fa4079bb","html_url":"https://github.com/funbringer/smart_psqlrc","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"66c6705dfa1a9d29ac1d0add10037919181e5966"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/funbringer/smart_psqlrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbringer%2Fsmart_psqlrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbringer%2Fsmart_psqlrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbringer%2Fsmart_psqlrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbringer%2Fsmart_psqlrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funbringer","download_url":"https://codeload.github.com/funbringer/smart_psqlrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbringer%2Fsmart_psqlrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29833763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T17:57:15.019Z","status":"ssl_error","status_checked_at":"2026-02-25T17:56:11.472Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["postgres","postgresql","psql","psqlrc"],"created_at":"2024-09-24T19:53:49.207Z","updated_at":"2026-02-25T18:05:17.713Z","avatar_url":"https://github.com/funbringer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Make `psql` even more powerful\n\n### Overview\n\nThis repository contains two important files:\n* `.psqlrc`\n* `pg_debug`\n\nThe first one is a config file which provides a simple way to extend command prompt in\t**`psql`**,\na terminal-based front-end to PostgreSQL. The latter is a tiny script which allows you to quickly\nattach to the current PostgreSQL backend using a `:gdb` command defined in `.psqlrc`\n(keep in mind that it only works with the `yakuake` terminal emulator, though).\n\n### What can I do with this stuff?\n\nThis is how default psql prompt looks like:\n\n```\npsql (10.0)\nType \"help\" for help.\n\npostgres=#\n```\n\nUsing this config, you can easily add a few more useful things to prompt:\n\n```\n~/pg_10/bin/psql postgres -p 10679\npsql (10.0)\nType \"help\" for help.\n\npostgres[R, 10679]=#\n```\n\nWhere `R` means we're connected to some replica node, and `10679` is the port this node listens to.\n\n### How do I add my favorite setting?\n\nSimply add a line describing your setting to `.psqlrc` under the `Put your lines here.` comment, for example:\n\n```plpgsql\n/* ORDER  NAME                   FMT_STRING  DEFAULT_VALUE */\n  (1,     'master_or_replica',   '',         'M'),\n  (2,     'port',                'port',     '5432'),\n  (3,     'shardman.my_id',      '@',        NULL),\n  (4,     'multimaster.node_id', '@',        NULL)\n```\n\nBy default values are taken from table called `pg_settings` (it's part of the system catalog), but you can add a few more relations using the `UNION` statement.\n\nThis is how the result might look like:\n\n```\npsql (10.0)\nType \"help\" for help.\n\npostgres[port=5433, @2]=#\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbringer%2Fsmart_psqlrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunbringer%2Fsmart_psqlrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbringer%2Fsmart_psqlrc/lists"}