postgres-remote-ops

Execute SQL against remote PostgreSQL instances via Node.js pg scripts and SSH batch files.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ecnepsyroc-bot/Dejavara --skill postgres-remote-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-remote-ops
Source: https://github.com/ecnepsyroc-bot/Dejavara/tree/main/deploy/skills/postgres-remote-ops
Command: npx skills add https://github.com/ecnepsyroc-bot/Dejavara --skill postgres-remote-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide reliable ways to execute SQL against remote PostgreSQL instances when direct psql access is unavailable, when gateway timeouts kill long queries, or when command escaping across PowerShell, node, and cmd.exe layers breaks inline commands.

Core Features & Use Cases

  • Node.js pg fallback: one-liners and scripts to run queries from machines without psql and to avoid complex escaping.
  • SSH / batch execution: SSH into cambium-server (or via tunnel) and run psql or pre-created batch files to bypass gateway timeout limits and quoting problems.
  • GUI and web fallbacks: use Railway Data tab, TablePlus, or DBeaver for quick ad-hoc queries and interactive fixes.
  • Operational guidance: examples for ALTER TABLE, killing connections, verifying schema, and escaping rules across shells.

Quick Start

Run the query SELECT COUNT(*) FROM jobs on the remote Railway PostgreSQL using the run-sql.js Node script and return the JSON rows.

Frequently Asked Questions about postgres-remote-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run PostgreSQL queries on Railway when gateway timeouts kill long-running commands?

To run PostgreSQL queries on Railway when gateway timeouts occur, use SSH batch file execution or Node.js pg scripts to bypass direct psql execution. This approach avoids gateway timeout limits and handles complex cross-shell escaping problems reliably.

What is the best way to execute SQL against a remote PostgreSQL instance without psql installed?

The best way to execute SQL without psql is using Node.js pg scripts. This method provides one-liners and script execution to run queries remotely, avoiding the need for local psql installation and preventing complex command escaping issues.

Can I use SSH to bypass psql command escaping problems across PowerShell and cmd.exe?

Yes, you can use SSH to bypass psql command escaping problems across PowerShell and cmd.exe. By SSHing into accessible servers and running pre-created batch files or psql directly, you avoid multi-layer escaping issues that break inline commands.

Does Railway support SSL modes and connection strings for remote PostgreSQL access?

Railway supports SSL modes and connection strings for remote PostgreSQL access. You can configure these within Node.js pg scripts or GUI fallbacks like TablePlus and DBeaver to establish secure connections using Railway host conventions.

How do I perform operational tasks like ALTER TABLE or killing connections on a remote PostgreSQL database?

To perform operational tasks like ALTER TABLE or killing connections on remote PostgreSQL, use Node.js pg scripts, SSH batch execution, or GUI tools like Railway Data tab and TablePlus. These methods support executing administrative SQL safely.

What are the limitations of running inline psql commands on remote PostgreSQL instances?

Limitations of running inline psql commands include gateway timeouts killing long-running queries and multi-layer escaping breaking commands across shells. Using Node.js scripts, SSH batch execution, or GUI fallbacks circumvents these constraints reliably.