{"id":28826574,"url":"https://github.com/cybertec-postgresql/pg_remote_exec","last_synced_at":"2025-09-10T19:44:30.061Z","repository":{"id":87760250,"uuid":"63061006","full_name":"cybertec-postgresql/pg_remote_exec","owner":"cybertec-postgresql","description":"Run shell commands in SQL prompt","archived":false,"fork":false,"pushed_at":"2024-07-11T15:43:31.000Z","size":15,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-07-12T15:46:36.861Z","etag":null,"topics":["postgresql","postgresql-extension"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cybertec-postgresql.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":"2016-07-11T11:06:56.000Z","updated_at":"2024-07-11T15:43:32.000Z","dependencies_parsed_at":"2024-07-10T15:37:30.172Z","dependency_job_id":null,"html_url":"https://github.com/cybertec-postgresql/pg_remote_exec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cybertec-postgresql/pg_remote_exec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybertec-postgresql%2Fpg_remote_exec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybertec-postgresql%2Fpg_remote_exec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybertec-postgresql%2Fpg_remote_exec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybertec-postgresql%2Fpg_remote_exec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cybertec-postgresql","download_url":"https://codeload.github.com/cybertec-postgresql/pg_remote_exec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cybertec-postgresql%2Fpg_remote_exec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260676931,"owners_count":23045115,"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":["postgresql","postgresql-extension"],"created_at":"2025-06-19T03:05:18.210Z","updated_at":"2025-09-10T19:44:30.032Z","avatar_url":"https://github.com/cybertec-postgresql.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg_remote_exec\n\nPostgreSQL extension to allow shell command execution via SQL query.\n\n# INSTALL\n\nInstall PostgreSQL before proceeding. Make sure to have `pg_config` binary,\nthese are typically included in `-dev` and `-devel` packages.\n\n```bash\ngit clone https://github.com/cybertec-postgresql/pg_remote_exec.git\ncd pg_remote_exec\nmake\nsudo make install\n```\n\n# CONFIGURE\n\nExecute as superuser:\n\n```\nCREATE EXTENSION pg_remote_exec;\n```\n\n# USAGE\n\n```\npostgres=# SELECT pg_remote_exec('date');\n pg_remote_exec\n----------------\n              0\n(1 row)\n\npostgres=# SELECT pg_remote_exec_fetch('date', 't');\n     pg_remote_exec_fetch\n───────────────────────────────\n Fri Aug  5 17:41:07 EEST 2016\n(1 row)\n```\n\n# REFERENCE\n\n## Functions\n\n* `pg_remote_exec(text)`: executes the command and returns the shell\n  exit code.\n* `pg_remote_exec_fetch(text, boolean)`: executes the command and returns\n  output as text. The boolean parameter dictates whether to return output in\n  case of non-zero exit code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybertec-postgresql%2Fpg_remote_exec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcybertec-postgresql%2Fpg_remote_exec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcybertec-postgresql%2Fpg_remote_exec/lists"}