{"id":7308,"date":"2026-10-11T13:50:03","date_gmt":"2026-10-11T18:50:03","guid":{"rendered":"https:\/\/querystreams.com\/docs\/postgresql-connector-setup\/"},"modified":"2026-11-09T10:42:35","modified_gmt":"2026-11-09T16:42:35","password":"","slug":"postgresql-connector-setup","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/zh\/docs\/postgresql-connector-setup\/","title":{"rendered":"\u8bbe\u7f6e PostgreSQL \u8fde\u63a5\u5668"},"content":{"rendered":"\n<article class=\"qs-d\" data-src=\"postgresql\" data-dest=\"excel\" style=\"--qs-src:51 103 145;--qs-src-deep:14 33 51;--qs-src-ink:51 103 145;--qs-src-tint:#629AC8;--qs-dst:33 115 70;--qs-dst-tint:#7fdc9e\">\n<header class=\"qs-d-hero\"><div class=\"qs-d-hero__pair\"><a class=\"lnk\" href=\"https:\/\/querystreams.com\/database-integrations\/postgresql\/\" aria-label=\"PostgreSQL: all integrations\" data-qs-cta=\"hub_page\"><img decoding=\"async\" class=\"src\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/postgreesql-40.png\" alt=\"\" width=\"44\" height=\"44\" loading=\"eager\"><\/a><\/div><span class=\"qs-d-eyebrow\">Connector setup &middot; PostgreSQL<\/span><p class=\"qs-d-hero__title\">Set up the <em class=\"src\">PostgreSQL<\/em> connector<\/p><p class=\"qs-d-hero__sub\">Three things decide whether a PostgreSQL connection works: PostgreSQL letting the Agent&rsquo;s computer in, the Use SSL tick box, and the right login. This page covers each, plus every hosted provider card in the Portal.<\/p><div class=\"qs-d-hero__meta\"><span class=\"qs-d-pill\"><i class=\"fa-solid fa-clock\"><\/i> About 10 minutes<\/span><span class=\"qs-d-pill\"><i class=\"fa-solid fa-server\"><\/i> Your own server or a cloud provider<\/span><span class=\"qs-d-pill src\"><i class=\"fa-solid fa-shield-halved\"><\/i> Read-only<\/span><\/div><\/header>\n<div class=\"qs-d-support\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Stuck at any point? Just ask us.<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams (top-right menu &rarr; Support) and send us a message. Real people read it, and &ldquo;I don&rsquo;t know what this screen is asking for&rdquo; is a perfectly good question.<\/div><\/div>\n\n<h2 id=\"result\">What you&rsquo;ll end up with<\/h2>\n<p class=\"qs-d-lead\"><img decoding=\"async\" class=\"qs-d-lead__icon\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/postgreesql-40.png\" alt=\"PostgreSQL logo\" width=\"28\" height=\"28\"><span>A PostgreSQL connection in <strong>Data Agents<\/strong> that tests <strong>Connected<\/strong>, with the databases you want ticked, ready for Excel, Google Sheets, an AI assistant or the REST API. The Agent sends your queries straight to PostgreSQL and only ever reads.<\/span><\/p>\n\n<h2 id=\"need\">What the Agent needs<\/h2>\n<div class=\"qs-d-grid\">\n  <div class=\"qs-d-card\" data-zone=\"mint\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-network-wired\"><\/i><\/span>\n    <h3>A computer that can reach PostgreSQL<\/h3>\n    <p>The Agent connects from the computer it is installed on, not from your browser. The PostgreSQL driver is built into the Agent, so there is nothing else to install. No Agent yet? <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"install_doc\">Install the Agent on Windows<\/a> first.<\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"src\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-key\"><\/i><\/span>\n    <h3>A host, a port and a login<\/h3>\n    <p>The server&rsquo;s name or address, its port (usually <strong>5432<\/strong>), and a username and password. A login that can only read is best: <a href=\"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/#postgresql\" data-qs-cta=\"related\">create a read-only database user<\/a>. You do not need the database name yet; you pick it after the test.<\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"mint\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-solid fa-door-open\"><\/i><\/span>\n    <h3>A way in<\/h3>\n    <p>Out of the box PostgreSQL only answers programs on its own computer. Another computer needs two settings changed and the port open (<a href=\"#remote-access\">below<\/a>). Cloud providers have an allow-list instead (<a href=\"#hosted\">below<\/a>).<\/p>\n  <\/div>\n<\/div>\n\n<h2 id=\"connect\">Add the connection<\/h2>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-wand-magic-sparkles\"><\/i><p><strong>The easiest way round most of this page.<\/strong> If PostgreSQL runs on a server in your office and you are allowed to install programs on it, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"install_doc\">install the Agent on that server<\/a> and type <strong>localhost<\/strong> as the host. The <a href=\"#remote-access\">remote-access<\/a> settings and the firewall then do not apply. <strong>localhost<\/strong> always means the Agent&rsquo;s computer, never the computer you are browsing on.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"steps\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"step-1\">\n    <h3>Pick the card<\/h3>\n    <p>Open <a href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"open_data_agents\"><strong>Data Agents<\/strong><\/a> (under <strong>Data<\/strong> in the top menu) and click <strong>Add connector<\/strong> on your Agent. For a PostgreSQL you or your company runs, choose <strong>PostgreSQL<\/strong>. If your database is with a cloud provider that has its own card (Supabase, Neon, Amazon RDS and the rest), choose that card instead and follow its section <a href=\"#hosted\">below<\/a>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"step-2\">\n    <h3>Fill in the five boxes<\/h3>\n    <dl class=\"qs-d-kv\">\n      <dt>Host<\/dt><dd>The server&rsquo;s name or address, as seen from the Agent&rsquo;s computer, such as <strong>192.168.1.20<\/strong> or <strong>db01<\/strong>. Not sure? <a href=\"#find-host\">Find the host and port<\/a>.<\/dd>\n      <dt>Port<\/dt><dd>Starts at <strong>5432<\/strong>. Change it only if your server uses another port.<\/dd>\n      <dt>Username<\/dt><dd>The read-only login, for example <strong>qs_reader<\/strong>.<\/dd>\n      <dt>Password<\/dt><dd>That login&rsquo;s password.<\/dd>\n      <dt>Use SSL<\/dt><dd>Ticked to start with. A PostgreSQL on your own network often has encryption switched off; the test then tells you to untick it (<a href=\"#use-ssl\">details<\/a>).<\/dd>\n    <\/dl>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"step-3\">\n    <h3>Click Test connection<\/h3>\n    <p>A green <strong>Connected<\/strong> means the Agent signed in and opened a database. An amber <strong>Signed in<\/strong> with <strong>No database opened yet. Name it on the next step.<\/strong> is not the success it sounds like; read <a href=\"#remote-access\">the remote-access section<\/a> before typing a name. Anything in red: find the message in <a href=\"#test-failed\">Test failed?<\/a><\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"step-4\">\n    <h3>Tick your databases and create the connector<\/h3>\n    <p>The next screen asks <strong>Which databases do you want to work with?<\/strong> Tick the ones with your tables, click <strong>Next<\/strong> through <strong>Data realm<\/strong> (already chosen for you), and finish with <strong>Create connector<\/strong>. <a href=\"#database-step\">What this screen shows<\/a>.<\/p>\n  <\/li>\n<\/ol>\n<div class=\"qs-d-cta\"><a class=\"qs-d-btn qs-d-btn--primary\" href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"open_data_agents\"><i class=\"fa-solid fa-plug-circle-plus\"><\/i> Open Data Agents<\/a><\/div>\n\n<h2 id=\"self-hosted\">If PostgreSQL runs on your own server<\/h2>\n\n<h3 id=\"find-host\">Find the host and port<\/h3>\n<p>Ask yourself where PostgreSQL runs, compared with the Agent:<\/p>\n<table class=\"qs-d-table\">\n  <thead><tr><th>Where PostgreSQL is<\/th><th>What to type in Host<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td>The same computer as the Agent<\/td><td><strong>localhost<\/strong><\/td><\/tr>\n    <tr><td>Another computer in the office<\/td><td>Its name or its address on the office network, such as <strong>192.168.1.20<\/strong><\/td><\/tr>\n    <tr><td>A cloud provider<\/td><td>The host from the provider&rsquo;s console; see <a href=\"#hosted\">your provider<\/a><\/td><\/tr>\n  <\/tbody>\n<\/table>\n<p>To read it from a tool that already connects:<\/p>\n<ul>\n  <li><strong>pgAdmin:<\/strong> in the tree on the left, right-click your server and choose <strong>Properties<\/strong>. On the <strong>Connection<\/strong> tab, <strong>Host name\/address<\/strong> is your Host and <strong>Port<\/strong> is your Port. If it says <strong>localhost<\/strong> and pgAdmin is on a different computer from the Agent, use that computer&rsquo;s address instead (see step 3 of <a href=\"#remote-access\">the next section<\/a> for how to find it).<\/li>\n  <li><strong>On the PostgreSQL server itself<\/strong>, run this in any query window (pgAdmin&rsquo;s <strong>Query Tool<\/strong>, the <strong>SQL Shell (psql)<\/strong> window installed with PostgreSQL on Windows, or <strong>sudo -u postgres psql<\/strong> on Linux):<\/li>\n<\/ul>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Run this<\/div>\n<pre class=\"qs-d-code__body\">SHOW port;<\/pre><\/div>\n<p>It answers with a one-line table holding the port, usually <strong>5432<\/strong>.<\/p>\n\n<h3 id=\"remote-access\">If the Agent is on a different computer from PostgreSQL<\/h3>\n<p>PostgreSQL refuses other computers until two files say otherwise: <strong>postgresql.conf<\/strong> decides whether it listens to the network at all, and <strong>pg_hba.conf<\/strong> decides which computers and logins it lets in. Then the server&rsquo;s firewall has to let port 5432 through.<\/p>\n<p><strong>What a missing pg_hba.conf line looks like today.<\/strong> You might expect a clear refusal. Instead the test shows an amber <strong>Signed in<\/strong>, the words <strong>No database opened yet. Name it on the next step.<\/strong> and the Agent&rsquo;s message <strong>Login succeeded, but no database could be opened (tried postgres, template1). Enter the database name.<\/strong> If you then type your database name and click <strong>Verify<\/strong>, it says <strong>&lt;name&gt; doesn&#39;t exist or this login can&#39;t open it.<\/strong> Despite &ldquo;Login succeeded&rdquo;, this is almost always pg_hba.conf turning the Agent away: PostgreSQL refuses before it checks the password, and the Agent currently mistakes that refusal for a database problem. We are fixing the message. Follow the steps below.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> Ask whoever looks after your database or server to &ldquo;allow remote connections from the Agent&rsquo;s computer in postgresql.conf and pg_hba.conf, and open port 5432&rdquo;, or <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> and we will do it with you.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"remote-access\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"remote-1\">\n    <h3>Find the two files<\/h3>\n    <p>On the PostgreSQL server, open a query window as the <strong>postgres<\/strong> user (pgAdmin&rsquo;s <strong>Query Tool<\/strong>, or <strong>sudo -u postgres psql<\/strong> on Linux; <a href=\"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/#pg-1\" data-qs-cta=\"related\">how, step by step<\/a>) and run these one at a time:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Run each, note the answer<\/div>\n<pre class=\"qs-d-code__body\">SHOW config_file;\nSHOW hba_file;<\/pre><\/div>\n    <p>Each answers with a full path. On Windows both are usually in <strong>C:\\Program Files\\PostgreSQL\\17\\data\\<\/strong> (the number is your version); on Ubuntu or Debian, in <strong>\/etc\/postgresql\/17\/main\/<\/strong>. Write both down.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"remote-2\">\n    <h3>Make PostgreSQL listen to the network<\/h3>\n    <p>Open <strong>postgresql.conf<\/strong> in a text editor started as administrator (Windows: <strong>Start<\/strong>, type <strong>Notepad<\/strong>, right-click it, <strong>Run as administrator<\/strong>, then <strong>File &rarr; Open<\/strong> and set the file-type box to <strong>All Files<\/strong>; Linux: <strong>sudo nano<\/strong> and the path). Find the line that starts <strong>listen_addresses<\/strong>. If it reads <strong>&#39;localhost&#39;<\/strong> or starts with <strong>#<\/strong>, replace the whole line with the one below, then save.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The line in postgresql.conf<\/div>\n<pre class=\"qs-d-code__body\">listen_addresses = '*'<\/pre><\/div>\n    <p>Nothing changes yet: PostgreSQL reads this line only when it restarts (step 5).<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"remote-3\">\n    <h3>Find the Agent computer&rsquo;s address<\/h3>\n    <p>On the computer where the Agent is installed, click <strong>Start<\/strong>, type <strong>cmd<\/strong>, open <strong>Command Prompt<\/strong>, type <strong>ipconfig<\/strong> and press <strong>Enter<\/strong>. The line <strong>IPv4 Address<\/strong> shows something like <strong>192.168.1.25<\/strong>. The first three numbers, here <strong>192.168.1<\/strong>, are your office network.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"remote-4\">\n    <h3>Let the Agent in through pg_hba.conf<\/h3>\n    <p>Open <strong>pg_hba.conf<\/strong> the same way. Near the bottom are lines starting <strong>host<\/strong>; note the last word on them, usually <strong>scram-sha-256<\/strong> (older servers say <strong>md5<\/strong>). Add this line at the very end, with your network&rsquo;s first three numbers, your login and that same last word, then save:<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Add at the end of pg_hba.conf<\/div>\n<pre class=\"qs-d-code__body\">host    all    qs_reader    192.168.1.0\/24    scram-sha-256<\/pre><\/div>\n    <p>Read it as: a network connection (<strong>host<\/strong>), to any database (<strong>all<\/strong>), as <strong>qs_reader<\/strong>, from any computer on <strong>192.168.1.*<\/strong>, with a password. To allow only the Agent&rsquo;s computer, write its full address with <strong>\/32<\/strong>, such as <strong>192.168.1.25\/32<\/strong>. If the line names one database instead of <strong>all<\/strong>, the Agent can open only that one.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"remote-5\">\n    <h3>Restart PostgreSQL<\/h3>\n    <p><strong>Windows:<\/strong> click <strong>Start<\/strong>, type <strong>Services<\/strong>, open the <strong>Services<\/strong> app, find the entry whose name starts with <strong>postgresql-x64-<\/strong>, right-click it and choose <strong>Restart<\/strong>. Its <strong>Status<\/strong> goes blank for a moment and comes back as <strong>Running<\/strong>. <strong>Linux:<\/strong> type the line below; it prints nothing when it works.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Linux: type this, then press Enter<\/div>\n<pre class=\"qs-d-code__body\">sudo systemctl restart postgresql<\/pre><\/div>\n    <p>If PostgreSQL does not come back (Status stays blank, or the command prints <strong>failed<\/strong>), a typo crept into one of the files. Compare your lines with the ones above, save, and restart again.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"6\" id=\"remote-6\">\n    <h3>Open port 5432 on the server<\/h3>\n    <p>Windows: follow <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#postgresql\" data-qs-cta=\"related\">Open a firewall port on Windows<\/a> for TCP <strong>5432<\/strong>. Ubuntu with the <strong>ufw<\/strong> firewall switched on: type this, with your network; it answers <strong>Rule added<\/strong>.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Linux (ufw): type this, then press Enter<\/div>\n<pre class=\"qs-d-code__body\">sudo ufw allow from 192.168.1.0\/24 to any port 5432 proto tcp<\/pre><\/div>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"7\" id=\"remote-7\">\n    <h3>Test again in the Portal<\/h3>\n    <p>Back in the connector form, click <strong>Test connection<\/strong>. <strong>Connected<\/strong> means you are through. If it now says <strong>Connection failed: SSL connection requested. No SSL enabled connection from this host is configured.<\/strong>, untick <strong>Use SSL<\/strong> and test again (<a href=\"#use-ssl\">why<\/a>). If it says <strong>Connection failed: Failed to connect to<\/strong> and the address, the port is still closed or PostgreSQL did not restart: check steps 5 and 6.<\/p>\n  <\/li>\n<\/ol>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"use-ssl\">If the test mentions SSL: the Use SSL tick box<\/h3>\n<p><strong>Use SSL<\/strong> starts ticked. Ticked, the Agent insists on an encrypted connection and gives up if the server cannot provide one. PostgreSQL&rsquo;s own default is encryption switched off, and many installs, especially on Windows, never turn it on. Against such a server the test says:<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The message that means &ldquo;untick Use SSL&rdquo;<\/div>\n<pre class=\"qs-d-code__body\">Connection failed: SSL connection requested. No SSL enabled connection from this host is configured.<\/pre><\/div>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> It is one tick box and changes nothing on your server. If you are unsure, <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> with a photo of the message.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"use-ssl\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"ssl-1\">\n    <h3>Untick Use SSL<\/h3>\n    <p>In the connector form, click the <strong>Use SSL<\/strong> box so the tick disappears. The earlier test result clears; that is normal.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"ssl-2\">\n    <h3>Test again<\/h3>\n    <p>Click <strong>Test connection<\/strong>. You see <strong>Connected<\/strong>, or the next problem in line, usually the amber <strong>Signed in<\/strong> of a missing pg_hba.conf line (<a href=\"#remote-access\">fix it here<\/a>). The SSL message always comes first because encryption is agreed before anything else.<\/p>\n  <\/li>\n<\/ol>\n<p><strong>Is unticking safe?<\/strong> On your own network, yes. Unticked does not mean &ldquo;never encrypt&rdquo;: the Agent still encrypts whenever the server offers it, and only falls back to a plain connection when it does not. There is therefore no message that means &ldquo;tick it&rdquo; on the PostgreSQL card. Ticked is for when you want the test to fail rather than ever connect unencrypted, which is right for anything that crosses the internet.<\/p>\n<p><strong>Cloud providers.<\/strong> For Supabase, Neon, Crunchy Bridge, Azure PostgreSQL, DigitalOcean, Aiven, Render, Railway, Heroku, Nile, PlanetScale, Prisma, Koyeb, Timescale, IBM Cloud, Xata, Vultr and OVHcloud the Agent forces encryption whatever the box says, because they require it. On Amazon RDS, Google Cloud SQL, AlloyDB, Fly.io, OCI and Scaleway the box is obeyed: leave it ticked for a direct connection, and untick it only when you connect through a proxy program running on the Agent&rsquo;s computer (the provider sections say when).<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"postgres-app\">If PostgreSQL is Postgres.app on a Mac<\/h3>\n<p>Postgres.app lets programs on the same Mac in without a password, and since version 2.7 it asks you first. The Agent connects over the network, so Postgres.app cannot tell which program is asking and turns it away. The test then says:<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">The message that means &ldquo;give the login a password&rdquo;<\/div>\n<pre class=\"qs-d-code__body\">Connection failed: XX000: Postgres.app rejected \"trust\" authentication<\/pre><\/div>\n<p>The fix is to give your login a password and tell Postgres.app to ask for it. Ticking <strong>Use SSL<\/strong> does not help here; Postgres.app has no encryption switched on, so that only swaps this message for <a href=\"#use-ssl\">the SSL one<\/a>.<\/p>\n<ol class=\"qs-d-steps\" data-qs-seen=\"postgres-app\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"pgapp-1\">\n    <h3>Give the login a password<\/h3>\n    <p>In Postgres.app, double-click the database you use. A <strong>psql<\/strong> window opens, already signed in. Type the line below with your own login and a password of your choosing, then press <strong>Enter<\/strong>; it answers <strong>ALTER ROLE<\/strong>.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Type this, then press Enter<\/div>\n<pre class=\"qs-d-code__body\">ALTER ROLE postgres PASSWORD 'choose-a-password';<\/pre><\/div>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"pgapp-2\">\n    <h3>Ask for the password in pg_hba.conf<\/h3>\n    <p>In Postgres.app, select your server, click <strong>Server Settings&hellip;<\/strong>, and click <strong>Show<\/strong> next to <strong>Data Directory<\/strong>. Finder opens the folder; open <strong>pg_hba.conf<\/strong> in TextEdit. Near the bottom, lines starting <strong>host<\/strong> end with the word <strong>trust<\/strong>. Change that last word to <strong>scram-sha-256<\/strong> on each of them, then save.<\/p>\n    <div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Before and after, one line of pg_hba.conf<\/div>\n<pre class=\"qs-d-code__body\">host    all    all    127.0.0.1\/32    trust\nhost    all    all    127.0.0.1\/32    scram-sha-256<\/pre><\/div>\n    <p>If the Agent runs on another computer, also add the line from <a href=\"#remote-4\">step 4 of the remote-access walkthrough<\/a>, and make PostgreSQL <a href=\"#remote-2\">listen to the network<\/a>.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"pgapp-3\">\n    <h3>Restart Postgres.app<\/h3>\n    <p>Click <strong>Stop<\/strong>, then <strong>Start<\/strong>. The green tick returns in a moment.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"pgapp-4\">\n    <h3>Test again in the Portal<\/h3>\n    <p>Type the password from step 1 into the connector form, leave <strong>Use SSL<\/strong> unticked, and click <strong>Test connection<\/strong>. <strong>Connected<\/strong> means you are through. <strong>28P01: password authentication failed<\/strong> means the password or the login name differs from step 1: type them again.<\/p>\n  <\/li>\n<\/ol>\n<p><strong>Agent on the same Mac?<\/strong> Then Postgres.app can show its permission dialog instead. If a window asks whether the Agent may connect without a password, click <strong>Allow<\/strong> and test again. The steps above still work and do not depend on the dialog appearing.<\/p>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"database-step\">After a green test: choosing the databases<\/h3>\n<p>There is no Database box on the PostgreSQL form. After <strong>Connected<\/strong>, the Agent lists the databases on the server and the next screen asks <strong>Which databases do you want to work with?<\/strong> with the line <strong>We capture the schema of each one you tick, up to 5.<\/strong><\/p>\n<ul>\n  <li><strong>The list.<\/strong> Tick each database that holds your tables. If the server has exactly one database of your own, it is already ticked. Entries marked <strong>system<\/strong> (such as <strong>template1<\/strong>) hold server settings, not your data, and are hidden behind <strong>Show &hellip; system databases<\/strong>. The first ticked database is the <strong>Primary<\/strong>, used when a query does not name one. <strong>Rediscover<\/strong> asks the Agent for the list again.<\/li>\n  <li><strong>A typed name.<\/strong> If the login cannot list databases, or after an amber <strong>Signed in<\/strong>, the screen says <strong>Signed in, but no database opened. Type the database name and verify it.<\/strong> Type it in <strong>Type a database name<\/strong> and click <strong>Verify<\/strong>: <strong>&lt;name&gt; added.<\/strong> means it worked; <strong>&lt;name&gt; doesn&#39;t exist or this login can&#39;t open it.<\/strong> means it did not, and <strong>What the agent said<\/strong> opens the reason. PostgreSQL names are case-sensitive here: type it exactly as pgAdmin lists it. If you pasted a connection string that named a database, that name is already in the box.<\/li>\n  <li><strong>Before Next works<\/strong> you may see <strong>Tick at least one database.<\/strong> or <strong>Verify &lt;name&gt; or untick it.<\/strong>; both mean the list is not finished yet.<\/li>\n<\/ul>\n<p>Most cards work this way. Four keep a <strong>Database<\/strong> box on the form instead, because the connection is pinned to one database: <strong>Prisma Postgres<\/strong> (pre-filled <strong>postgres<\/strong>), <strong>Xata<\/strong> (<strong>Database:branch<\/strong>), and <strong>Aiven<\/strong> and <strong>Timescale<\/strong> when <strong>Connection Mode<\/strong> is set to the pool, where the box takes the pool&rsquo;s name.<\/p>\n\n<h2 id=\"hosted\">If your database is with a cloud provider<\/h2>\n<p>Each provider card in <strong>Add connector<\/strong> knows that provider&rsquo;s quirks. Three things are the same for all of them:<\/p>\n<ul>\n  <li><strong>Paste the connection string.<\/strong> Most cards start with a box for the provider&rsquo;s connection string (a line starting <strong>postgres:\/\/<\/strong> or <strong>postgresql:\/\/<\/strong>). Paste it and <strong>Host<\/strong>, <strong>Port<\/strong>, <strong>Username<\/strong> and, where the string carries it, <strong>Password<\/strong> fill themselves in. A password still shown as a placeholder in square brackets, like <strong>[YOUR-PASSWORD]<\/strong>, is left out on purpose: type the real one in <strong>Password<\/strong>. The pasted line is read in your browser only and is never saved or sent; only the filled-in boxes are.<\/li>\n  <li><strong>Allow the Agent&rsquo;s address.<\/strong> Many providers keep a list of addresses allowed to connect. The address they need is the <strong>internet<\/strong> address of the network the Agent&rsquo;s computer is on, not your office&rsquo;s 192.168 address. The simple way to get it right: open the provider&rsquo;s console in a browser <strong>on the Agent&rsquo;s computer<\/strong> and use its &ldquo;my current IP&rdquo; button there. When the list is missing the Agent, the test runs for about 30 seconds and ends <strong>Connection failed: Failed to connect to &hellip;<\/strong>.<\/li>\n  <li><strong>Use SSL.<\/strong> Leave it ticked unless the section below says otherwise (<a href=\"#use-ssl\">why<\/a>).<\/li>\n<\/ul>\n<p>Red text under a box before you test comes from the card itself; the section for your provider quotes it. If your provider has no card, use the <strong>PostgreSQL<\/strong> card with the host, port, username and password from its console.<\/p>\n\n<h3 id=\"supabase\">Supabase<\/h3>\n<p>Use the <strong>Session pooler<\/strong> connection, not the direct one: Supabase&rsquo;s direct address works only over IPv6 unless the project has paid for the IPv4 add-on, and most office networks are IPv4.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Not comfortable with this?<\/strong> Ask whoever set up the Supabase project for the Session pooler connection string and the database password, or <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a>.<\/p><\/div>\n<ol class=\"qs-d-steps\" data-qs-seen=\"supabase\">\n  <li class=\"qs-d-step\" data-qs-step=\"1\" id=\"supa-1\">\n    <h3>Open the Connect dialog<\/h3>\n    <p>In the <a href=\"https:\/\/supabase.com\/dashboard\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_console\">Supabase dashboard<\/a>, open your project and click <strong>Connect<\/strong> at the top of the page. A dialog lists the ways to connect.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"supa-2\">\n    <h3>Copy the Session pooler string<\/h3>\n    <p>Choose <strong>Session pooler<\/strong> and copy its string. It looks like <strong>postgresql:\/\/postgres.abcdefghijklmnopqrst:[YOUR-PASSWORD]@aws-0-eu-west-1.pooler.supabase.com:5432\/postgres<\/strong>. The part after <strong>postgres.<\/strong> is your project ref, and the host may start <strong>aws-1-<\/strong> instead of <strong>aws-0-<\/strong>; copy it rather than typing it.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"supa-3\">\n    <h3>Paste it into the Supabase card<\/h3>\n    <p>In <strong>Add connector<\/strong> choose <strong>Supabase<\/strong> and paste into <strong>Connection String (paste from Supabase)<\/strong>. <strong>Connection Mode<\/strong> switches to <strong>Session Pooler (IPv4, port 5432)<\/strong> and <strong>Host<\/strong>, <strong>Port<\/strong>, <strong>Username<\/strong> and <strong>Project Ref<\/strong> fill in. <strong>Password<\/strong> stays empty, because the string only holds the placeholder.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"supa-4\">\n    <h3>Type the database password<\/h3>\n    <p>This is the <strong>database<\/strong> password chosen when the project was created, not the password or GitHub login you use for the Supabase website. Supabase cannot show it again. If nobody has it, reset it in the Supabase dashboard on the project&rsquo;s <strong>Database Settings<\/strong> page (<a href=\"https:\/\/supabase.com\/docs\/guides\/database\/managing-passwords\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Supabase&rsquo;s instructions<\/a>); anything else using the old password stops working until you update it there too.<\/p>\n  <\/li>\n  <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"supa-5\">\n    <h3>Test connection<\/h3>\n    <p><strong>Connected<\/strong>, then the database list: <strong>postgres<\/strong> is your Supabase database, so tick it. If your project restricts addresses (<strong>Network Restrictions<\/strong> in Database Settings), add the Agent&rsquo;s internet address there first.<\/p>\n  <\/li>\n<\/ol>\n<p><strong>What the card and the Agent say when something is off:<\/strong><\/p>\n<ul>\n  <li><strong>Connection failed: could not reach the Supabase direct host &#39;db.&hellip;.supabase.co&#39;. Supabase direct connections are IPv6-only unless the project has the IPv4 add-on.<\/strong> You used the direct string. Go back to step 2 and copy the Session pooler one.<\/li>\n  <li><strong>Connection failed: password authentication failed. Note this is the DATABASE password, not your Supabase dashboard (GitHub\/SSO) login<\/strong>&hellip; Step 4: the password is wrong or is your website login. The message says to reset it in the Connect dialog; Supabase&rsquo;s own instructions put the reset on Database Settings.<\/li>\n  <li><strong>That looks like the [YOUR-PASSWORD] placeholder; paste your actual database password<\/strong> or <strong>The pasted string contains [YOUR-PASSWORD]; enter your actual database password here<\/strong>: type the real password in <strong>Password<\/strong>.<\/li>\n  <li><strong>Pooler connections use the dotted username format: postgres.&lt;project-ref&gt;<\/strong>: the username must be <strong>postgres.<\/strong> plus your project ref. <strong>Direct connections use the plain username (e.g. postgres), not the dotted pooler format<\/strong> is the opposite case.<\/li>\n  <li><strong>Session pooler uses the aws-0-&lt;region&gt;.pooler.supabase.com host; for db.&lt;project-ref&gt;.supabase.co select Direct Connection mode<\/strong>, <strong>Port 6543 is the transaction pooler; select Transaction Pooler mode or use port 5432<\/strong>, <strong>Transaction pooler uses port 6543<\/strong>: the mode, host and port disagree. Pasting the Session pooler string again puts all three right.<\/li>\n  <li><strong>Not a postgresql:\/\/ connection string; copy the URI from the Supabase Connect dialog<\/strong>: you pasted something else, such as the project URL or an API key.<\/li>\n<\/ul>\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-life-ring\"><\/i><p>If any of this does not match what you see, stop and <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to our support email<\/a> with a photo of the screen. We will walk you through it.<\/p><\/div>\n\n<h3 id=\"neon\">Neon<\/h3>\n<p>In the Neon console click <strong>Connect<\/strong>; the <strong>Connect to your branch<\/strong> window shows the connection string, password included. Paste it into <strong>Connection String (paste from Neon)<\/strong>. With <strong>Connection pooling<\/strong> on, the host contains <strong>-pooler<\/strong> and the card&rsquo;s <strong>Connection Mode<\/strong> becomes <strong>Pooled Endpoint<\/strong>; either mode works. Neon pauses idle databases, so the first test after a quiet spell can take a few seconds. Forgotten password: <strong>Roles<\/strong>, then <strong>Reset password<\/strong> on the role. If you use Neon&rsquo;s <strong>IP Allow<\/strong> (Settings &rarr; Networking), add the Agent&rsquo;s address. Card messages: <strong>Pooled endpoints have a -pooler suffix in the hostname &hellip; this looks like a direct host<\/strong> and <strong>This is the pooled (-pooler) host; select Pooled Endpoint mode or remove the -pooler suffix for a direct connection<\/strong> mean the mode and host disagree; paste the string again. (<a href=\"https:\/\/neon.com\/docs\/connect\/connect-from-any-app\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Neon: connect from any app<\/a>)<\/p>\n\n<h3 id=\"render\">Render<\/h3>\n<p>On the database&rsquo;s page in Render, open the <strong>Connect<\/strong> menu and copy the <strong>External<\/strong> connection string, not the Internal one: the internal address only works for services inside Render, so the Agent can never reach it. Paste it into <strong>External Connection String (paste from the Render dashboard)<\/strong>. Render&rsquo;s access control (the <strong>Networking<\/strong> section of the database&rsquo;s <strong>Info<\/strong> page) allows every address by default; if you have narrowed it, add the Agent&rsquo;s. (<a href=\"https:\/\/render.com\/docs\/postgresql-creating-connecting\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Render: connecting to Postgres<\/a>)<\/p>\n\n<h3 id=\"heroku\">Heroku Postgres<\/h3>\n<p>Copy the <strong>DATABASE_URL<\/strong> config var from your app&rsquo;s <strong>Settings<\/strong> tab in Heroku (or run <strong>heroku config:get DATABASE_URL -a your-app<\/strong>) and paste it into <strong>DATABASE_URL (paste from heroku config or the dashboard)<\/strong>. The trap is later, not now: Heroku changes these credentials on its own during maintenance and when they are rotated, so a connector that worked for months can start failing with <strong>password authentication failed<\/strong>. When that happens, copy the new <strong>DATABASE_URL<\/strong>, paste it into the connector&rsquo;s settings, and click <strong>Save changes<\/strong>. (<a href=\"https:\/\/devcenter.heroku.com\/articles\/connecting-to-heroku-postgres-databases-from-outside-of-heroku\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Heroku: connecting to Heroku Postgres<\/a>)<\/p>\n\n<h3 id=\"digitalocean\">DigitalOcean<\/h3>\n<p>In DigitalOcean open <strong>Databases<\/strong>, your cluster, then <strong>Connection Details<\/strong> on the <strong>Overview<\/strong>. Choose <strong>Public network<\/strong> and the <strong>Connection string<\/strong> format, click <strong>Copy<\/strong>, and paste into <strong>Connection String (paste from the DigitalOcean control panel)<\/strong>. The string includes the real password. Then, on the cluster&rsquo;s <strong>Network Access<\/strong> tab, <strong>Add Trusted Sources<\/strong> with the Agent&rsquo;s internet address (from the Agent&rsquo;s computer, <strong>My current IP address<\/strong> does it). Port <strong>25060<\/strong> is direct and <strong>25061<\/strong> a connection pool; the card says <strong>Port 25061 is a connection pool; select Connection Pool mode or use port 25060<\/strong> if they disagree. (<a href=\"https:\/\/docs.digitalocean.com\/products\/databases\/postgresql\/how-to\/connect\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">DigitalOcean: connect to PostgreSQL<\/a>)<\/p>\n\n<h3 id=\"aiven\">Aiven<\/h3>\n<p>Copy the <strong>Service URI<\/strong> from the service&rsquo;s <strong>Overview<\/strong> in the Aiven console (<strong>Quick connect<\/strong>) and paste it into <strong>Service URI (paste from the Aiven console)<\/strong>. Aiven gives every service its own port, so never assume 5432; the card refuses a blank one with <strong>Port is required &#8211; Aiven assigns one per service; copy it from the console<\/strong>. A connection pool has a different port again: set <strong>Connection Mode<\/strong> to <strong>Connection Pool<\/strong>, paste the pool&rsquo;s URI, and put the pool&rsquo;s name in <strong>Database<\/strong>. The allow-list (<strong>Set IP address allowlist<\/strong> under the service&rsquo;s <strong>Cloud and network<\/strong> settings) is open to all by default. (<a href=\"https:\/\/aiven.io\/docs\/products\/postgresql\/get-started\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Aiven: get started<\/a>)<\/p>\n\n<h3 id=\"railway\">Railway<\/h3>\n<p>Railway databases are private until you switch on public access: in the database service&rsquo;s <strong>Settings &rarr; Networking<\/strong>, add public access. Railway then creates a TCP proxy address (like <strong>shuttle.proxy.rlwy.net:15140<\/strong>) and fills the <strong>DATABASE_PUBLIC_URL<\/strong> variable. Paste that into <strong>Public Connection String (DATABASE_PUBLIC_URL)<\/strong>. The other URL, with <strong>.railway.internal<\/strong> in it, only works inside Railway; the card says <strong>That is the private-network hostname; use the public TCP-proxy host from DATABASE_PUBLIC_URL<\/strong>. The proxy has its own port, so copy it from the URL. Railway bills the proxy&rsquo;s traffic as egress. (<a href=\"https:\/\/docs.railway.com\/guides\/postgresql\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Railway: PostgreSQL<\/a>)<\/p>\n\n<h3 id=\"flyio\">Fly.io Postgres<\/h3>\n<p>Fly.io Managed Postgres sits on Fly&rsquo;s private network and cannot be reached from the internet. The Agent gets in through Fly&rsquo;s proxy, running on the Agent&rsquo;s computer: with the <strong>fly<\/strong> command-line tool installed and signed in there, run <strong>fly mpg proxy<\/strong> and leave it running. In the <strong>Fly.io Postgres<\/strong> card set <strong>Host<\/strong> to <strong>127.0.0.1<\/strong>, <strong>Port<\/strong> to the local port the proxy prints, <strong>Username<\/strong> (starts as <strong>fly-user<\/strong>) and the password from the cluster&rsquo;s <strong>Connection<\/strong> tab, and untick <strong>Use SSL<\/strong>, as the card&rsquo;s own note says. The card refuses <strong>.internal<\/strong> addresses: <strong>That is a Fly private-network hostname<\/strong>&hellip; The connector works only while the proxy runs, so this suits an always-on computer. (<a href=\"https:\/\/fly.io\/docs\/mpg\/create-and-connect\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Fly.io: create and connect<\/a>)<\/p>\n\n<h3 id=\"timescale\">Timescale<\/h3>\n<p>In the Tiger (Timescale) console open <strong>Services<\/strong>, your service, <strong>Connect<\/strong>, then <strong>More details<\/strong> for the host, port and username. The password is shown once, when the service is created, in the downloaded <strong>&lt;service name&gt;-credentials.txt<\/strong> file; if it is lost, use <strong>Forgot your password?<\/strong> in the console. Ports are unusual and per service (often around 30000), and the pooler has a different one; copy whichever you use and set <strong>Connection Mode<\/strong> to match (a pool also needs its name in <strong>Database<\/strong>). If you have an IP allow list applied to the service, add the Agent&rsquo;s address. (<a href=\"https:\/\/www.tigerdata.com\/docs\/integrate\/find-connection-details\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Tiger Data: find connection details<\/a>)<\/p>\n\n<h3 id=\"crunchybridge\">Crunchy Bridge<\/h3>\n<p>In the Crunchy Bridge dashboard open your cluster&rsquo;s <strong>Connection<\/strong> tab, pick the role, choose the URL format and paste it into <strong>Connection String (paste from Crunchy Bridge)<\/strong>. Port <strong>5432<\/strong> is direct and <strong>5431<\/strong> the built-in PgBouncer; the card says <strong>Port 5431 is the PgBouncer pool; select PgBouncer Pool mode or use port 5432<\/strong> when they disagree. The cluster firewall (<strong>Networking<\/strong>) starts open to all addresses; if you replaced those rules with your own, include the Agent&rsquo;s address. (<a href=\"https:\/\/docs.crunchybridge.com\/connecting\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Crunchy Bridge: connecting<\/a>)<\/p>\n\n<h3 id=\"alloydb\">AlloyDB<\/h3>\n<p>AlloyDB instances have only a private address by default, inside your Google Cloud network, which an Agent in your office cannot reach. Two ways in: switch on <strong>Enable Public IP<\/strong> on the instance and add the Agent&rsquo;s internet address to its authorised external networks, then type the public IP in <strong>Instance IP address<\/strong> with <strong>Use SSL<\/strong> ticked; or run the <strong>AlloyDB Auth Proxy<\/strong> on the Agent&rsquo;s computer, type <strong>127.0.0.1<\/strong>, and untick <strong>Use SSL<\/strong> (the proxy encrypts the link itself, and the card&rsquo;s note says to turn it off). If the instance only has a private address and you do not use the proxy, the Agent has to run on a machine inside that Google Cloud network. (<a href=\"https:\/\/docs.cloud.google.com\/alloydb\/docs\/connect-public-ip\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">AlloyDB: connect using public IP<\/a>)<\/p>\n\n<h3 id=\"oci\">OCI PostgreSQL<\/h3>\n<p>Oracle says plainly that OCI Database with PostgreSQL endpoints &ldquo;aren&rsquo;t directly accessible from the internet&rdquo;. The practical answer is to install the Agent on a compute instance inside the same OCI network (VCN), then type the database system&rsquo;s private address or FQDN (from <strong>Databases &rarr; PostgreSQL &rarr; DB Systems<\/strong>, your system, <strong>Connection details<\/strong>) into <strong>Private IP or FQDN<\/strong>. A Bastion session also works but expires, which breaks the connector. Keep <strong>Use SSL<\/strong> ticked unless your DB system has TLS turned off. (<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/postgresql\/connect-to-db.htm\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Oracle: connecting to a database<\/a>)<\/p>\n\n<h3 id=\"scaleway\">Scaleway<\/h3>\n<p>Scaleway shows an IP address and a port, not a host name. In the Scaleway console open <strong>Databases &rarr; PostgreSQL and MySQL<\/strong>, pick the region and your instance, and copy the IP and port from its information section into the card&rsquo;s <strong>IP address<\/strong> and <strong>Port<\/strong> (the port is per instance, not 5432). The default database is <strong>rdb<\/strong>. The <strong>Allowed IPs<\/strong> tab starts open to all; if you narrowed it, add the Agent&rsquo;s address with <strong>Add allowed IP<\/strong>. (<a href=\"https:\/\/www.scaleway.com\/en\/docs\/managed-databases-for-postgresql-and-mysql\/how-to\/connect-database-instance\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Scaleway: connect to a Database Instance<\/a>)<\/p>\n\n<h3 id=\"ovhcloud\">OVHcloud<\/h3>\n<p>OVHcloud is the one provider here that refuses every address until you add one: &ldquo;by default, a Public Cloud Databases service does not accept any connection from the outside world.&rdquo; In the OVHcloud Control Panel open <strong>Databases<\/strong>, your service, the <strong>Configuration<\/strong> tab, and in the <strong>IPs<\/strong> section add the Agent&rsquo;s internet address (<strong>Current IP<\/strong> does it from the Agent&rsquo;s computer). Then copy the service URI and paste it into <strong>Service URI (paste from the OVHcloud manager)<\/strong>; the user is usually <strong>avnadmin<\/strong> and the port is per service. (<a href=\"https:\/\/docs.ovhcloud.com\/en\/guides\/public-cloud\/databases\/postgresql-prepare-for-incoming-connections\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">OVHcloud: prepare for incoming connections<\/a>)<\/p>\n\n<h3 id=\"vultr\">Vultr<\/h3>\n<p>In Vultr open <strong>Products &rarr; Databases<\/strong>, your database, and under <strong>Overview<\/strong> use <strong>Copy Connection String<\/strong> in <strong>Connection Details<\/strong>; paste it into <strong>Connection String (paste from the Vultr portal)<\/strong>. The port is not 5432 (the card refuses a blank one: <strong>Port is required &#8211; Vultr assigns one per cluster; copy it from the portal<\/strong>). <strong>Trusted Sources<\/strong> allows all addresses until you edit it; if you have, add the Agent&rsquo;s. (<a href=\"https:\/\/docs.vultr.com\/products\/storage\/databases\/postgresql\/management\/connection\/connection-details\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Vultr: connection details<\/a>)<\/p>\n\n<h3 id=\"koyeb\">Koyeb Postgres<\/h3>\n<p>In Koyeb open the <strong>Databases<\/strong> tab, your database service, then <strong>Connection Details<\/strong>; copy the <strong>psql<\/strong> connection string and paste it into <strong>Connection String (paste from the Koyeb console)<\/strong>. Database hosts end in <strong>.pg.koyeb.app<\/strong>; an app address gets <strong>That looks like a Koyeb app hostname; database hosts end in .pg.koyeb.app<\/strong>. A password changed inside PostgreSQL is not reflected in the Koyeb console; reset it from the service&rsquo;s <strong>Roles<\/strong> tab instead. (<a href=\"https:\/\/www.koyeb.com\/docs\/databases\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Koyeb: databases<\/a>)<\/p>\n\n<h3 id=\"nile\">Nile<\/h3>\n<p>In the Nile console open your database, then <strong>settings<\/strong>, <strong>connections<\/strong>, click the <strong>Postgres<\/strong> icon and <strong>Generate credentials<\/strong>. Copy the connection string straight away (the password is shown once) and paste it into <strong>Connection String (paste from the Nile console)<\/strong>. The username is a generated id, not a name you chose. (<a href=\"https:\/\/thenile.dev\/docs\/postgres\/tools\/psql\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Nile: psql<\/a>)<\/p>\n\n<h3 id=\"ibm-cloud\">IBM Cloud PostgreSQL<\/h3>\n<p>A new IBM Cloud Databases for PostgreSQL deployment has an <strong>admin<\/strong> user with no password you can use: set one first (IBM&rsquo;s docs show the command <strong>ibmcloud cdb deployment-user-password<\/strong>). The connection string is on the deployment&rsquo;s <strong>Overview<\/strong>, in the <strong>Endpoints<\/strong> panel; use the public endpoint and paste it into <strong>Connection String (paste from the IBM Cloud dashboard)<\/strong>. The port is per deployment, usually in the 30000s. (<a href=\"https:\/\/cloud.ibm.com\/docs\/databases-for-postgresql?topic=databases-for-postgresql-connection-strings\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">IBM Cloud: connection strings<\/a>)<\/p>\n\n<h3 id=\"prisma\">Prisma Postgres<\/h3>\n<p>In the Prisma Console open your database, <strong>Connect to your database<\/strong>, then <strong>Generate new connection string<\/strong>, and copy the <strong>direct<\/strong> one, which starts <strong>postgres:\/\/<\/strong> and ends <strong>@db.prisma.io:5432\/?sslmode=require<\/strong>. Paste it into <strong>Direct Connection String (paste from the Prisma Console)<\/strong>. The other kind, starting <strong>prisma+postgres:\/\/<\/strong>, is refused with <strong>That is the Prisma Accelerate URL &#8211; generate the DIRECT TCP connection string instead<\/strong>. The string has no database name, so the card keeps a <strong>Database<\/strong> box set to <strong>postgres<\/strong>; leave it. A company firewall must allow outgoing port 5432 to db.prisma.io. (<a href=\"https:\/\/www.prisma.io\/docs\/postgres\/database\/direct-connections\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Prisma: direct connections<\/a>)<\/p>\n\n<h3 id=\"planetscale\">PlanetScale Postgres<\/h3>\n<p>In PlanetScale click <strong>Connect<\/strong> and create a role; copy the credentials at once, because PlanetScale does not show them again. Passwords start <strong>pscale_pw_<\/strong> and usernames carry a dot and an id; the card checks with <strong>PlanetScale usernames use the dotted format: postgres.&lt;database-id&gt;<\/strong>. The card starts on <strong>PSBouncer Pool<\/strong> with port <strong>6432<\/strong>; <strong>5432<\/strong> is direct. Both a <strong>postgresql:\/\/<\/strong> string and PlanetScale&rsquo;s <strong>host=&hellip; port=&hellip;<\/strong> form paste into <strong>Connection String (paste from the PlanetScale console)<\/strong>. (<a href=\"https:\/\/planetscale.com\/docs\/postgres\/connecting\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">PlanetScale: connecting<\/a>)<\/p>\n\n<h3 id=\"xata\">Xata<\/h3>\n<p>Xata maps the boxes differently: <strong>Workspace ID (username)<\/strong>, <strong>API key (password)<\/strong> (it starts <strong>xau_<\/strong>) and <strong>Database:branch<\/strong>, such as <strong>mydb:main<\/strong>. Paste Xata&rsquo;s <strong>postgresql:\/\/<\/strong> string into <strong>Connection String (paste from Xata)<\/strong> and the three fill in; a bare database name gets <strong>Xata expects database:branch (e.g. mydb:main)<\/strong>. We could not confirm the current Xata console screens; if they do not match, send us a photo.<\/p>\n\n<h3 id=\"azure\">Azure PostgreSQL<\/h3>\n<p>Azure Database for PostgreSQL lets no address in by default. In the Azure portal open your server, then <strong>Networking<\/strong> under <strong>Settings<\/strong>, click <strong>Add current client IP address<\/strong> (from a browser on the Agent&rsquo;s computer, so it adds the right one) and <strong>Save<\/strong>; changes can take up to five minutes. <strong>Allow public access from any Azure service within Azure to this server<\/strong> does not cover an Agent in your office. Copy <strong>Server name<\/strong> and <strong>Administrator login<\/strong> from the server&rsquo;s <strong>Overview<\/strong>; flexible server usernames have no <strong>@servername<\/strong> ending, and the card says <strong>Flexible server usernames have no @servername suffix; use the plain username<\/strong> if you add one. Port <strong>6432<\/strong> is the optional built-in PgBouncer. (<a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/postgresql\/network\/how-to-networking-servers-deployed-public-access-add-firewall-rules\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Microsoft: add firewall rules<\/a>)<\/p>\n\n<h3 id=\"rds\">Amazon RDS<\/h3>\n<p>In the RDS console open <strong>Databases<\/strong>, your instance, and the <strong>Connectivity &amp; security<\/strong> tab; copy the <strong>Endpoint<\/strong> (with <strong>:5432<\/strong> if you like) into <strong>Endpoint or Connection String (paste from the RDS console)<\/strong>, which also sets <strong>Database Engine<\/strong> to PostgreSQL. RDS lets nothing in by default, and two things must both be true: the instance has <strong>Public accessibility<\/strong> set to <strong>Yes<\/strong>, and its VPC security group has an inbound rule for port 5432 from the Agent&rsquo;s address (choose <strong>My IP<\/strong> as the source, from the Agent&rsquo;s computer). Missing either one gives <strong>Failed to connect to<\/strong> after about 30 seconds. Keep <strong>Use SSL<\/strong> ticked: RDS for PostgreSQL 15 and later refuses unencrypted connections. (<a href=\"https:\/\/docs.aws.amazon.com\/AmazonRDS\/latest\/UserGuide\/USER_ConnectToPostgreSQLInstance.html\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">AWS: connecting to RDS for PostgreSQL<\/a>)<\/p>\n\n<h3 id=\"cloud-sql\">Google Cloud SQL<\/h3>\n<p>The Google Cloud SQL card has no paste box; type the instance&rsquo;s public IP into <strong>Instance IP address<\/strong>. For that to work the instance needs <strong>Public IP<\/strong> switched on (<strong>Connections &rarr; Networking<\/strong>) and the Agent&rsquo;s internet address under <strong>Authorized networks<\/strong>, then <strong>Save<\/strong>. The alternative is the <strong>Cloud SQL Auth Proxy<\/strong> on the Agent&rsquo;s computer: type <strong>127.0.0.1<\/strong> and untick <strong>Use SSL<\/strong>, as the card&rsquo;s note says (the proxy encrypts the link itself). If PostgreSQL is also installed on that computer, the proxy needs a port other than 5432. (<a href=\"https:\/\/docs.cloud.google.com\/sql\/docs\/postgres\/authorize-networks\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"vendor_doc\">Google: authorized networks<\/a>)<\/p>\n\n<h2 id=\"test-failed\">Test failed?<\/h2>\n<p>The message under the test result tells you which of these it is. The Agent&rsquo;s messages start <strong>Connection failed:<\/strong>; the database names and addresses in yours will differ.<\/p>\n<table class=\"qs-d-table\">\n  <thead><tr><th>Message<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead>\n  <tbody>\n    <tr><td><strong>SSL connection requested. No SSL enabled connection from this host is configured.<\/strong><\/td><td><strong>Use SSL<\/strong> is ticked and the server has encryption off.<\/td><td>Untick <strong>Use SSL<\/strong> and test again (<a href=\"#use-ssl\">why it is safe<\/a>).<\/td><\/tr>\n    <tr><td>Amber <strong>Signed in<\/strong> with <strong>Login succeeded, but no database could be opened (tried postgres, template1). Enter the database name.<\/strong><\/td><td>Almost always pg_hba.conf has no line for the Agent&rsquo;s computer. Rarely, the server really has no database the login may open.<\/td><td><a href=\"#remote-access\">Steps 1, 3, 4 and 5 of the remote-access walkthrough<\/a>, then test again before typing any name.<\/td><\/tr>\n    <tr><td><strong>Login succeeded, but database &#39;sales&#39; can&#39;t be opened by this login and no fallback database could be opened (tried sales, postgres, template1).<\/strong><\/td><td>The same pg_hba.conf refusal, seen after you typed a name.<\/td><td>As above: <a href=\"#remote-4\">add the pg_hba.conf line<\/a> and restart.<\/td><\/tr>\n    <tr><td><strong>Failed to connect to 192.168.1.20:5432<\/strong><\/td><td>Nothing let the Agent through: PostgreSQL listens only to itself, the port is closed, the service is stopped, the host or port is wrong, or (cloud) the Agent&rsquo;s address is not on the allow-list. Instant means refused; after about 30 seconds means blocked.<\/td><td>Self-hosted: <a href=\"#remote-2\">listen_addresses<\/a>, <a href=\"#remote-5\">restart<\/a>, <a href=\"#remote-6\">the firewall<\/a>, and <a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/#test\" data-qs-cta=\"related\">test the port<\/a>. Cloud: your provider&rsquo;s allow-list in <a href=\"#hosted\">its section<\/a>.<\/td><\/tr>\n    <tr><td><strong>XX000: Postgres.app rejected &quot;trust&quot; authentication<\/strong><\/td><td>Postgres.app on a Mac refuses password-less connections it cannot attribute to a program on the same Mac.<\/td><td>Give the login a password and switch pg_hba.conf from <strong>trust<\/strong> to <strong>scram-sha-256<\/strong> (<a href=\"#postgres-app\">the Postgres.app steps<\/a>). Ticking <strong>Use SSL<\/strong> does not help.<\/td><\/tr>\n    <tr><td><strong>28P01: password authentication failed for user &quot;qs_reader&quot;<\/strong><\/td><td>Wrong password, or no login of that name (PostgreSQL says the same for both). On Heroku, credentials that were rotated. Right after switching Postgres.app from <strong>trust<\/strong>, the password you just set was not the one typed.<\/td><td>Retype the password, check the username, or reset it (<a href=\"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/#postgresql\" data-qs-cta=\"related\">create the read-only login<\/a>). Heroku: <a href=\"#heroku\">paste the new DATABASE_URL<\/a>.<\/td><\/tr>\n    <tr><td>After a green test and the database step: <strong>Connected, but no tables were found in &lt;name&gt;. Check the schema selection, or whether the database holds only views.<\/strong><\/td><td>The database opened, but the Agent found no ordinary tables in it: it holds only views, or its tables are partitioned, or it is empty so far.<\/td><td>If the tables exist in pgAdmin, <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">reply to support<\/a> with the database name and we will capture them; views and partitioned tables are on the way. If the database is empty, create your tables and click <strong>Rediscover<\/strong>.<\/td><\/tr>\n    <tr><td><strong>password authentication failed. Note this is the DATABASE password, not your Supabase dashboard (GitHub\/SSO) login<\/strong>&hellip;<\/td><td>Supabase: the website login or an old password was typed.<\/td><td><a href=\"#supa-4\">Use or reset the database password<\/a>.<\/td><\/tr>\n    <tr><td><strong>could not reach the Supabase direct host<\/strong> &hellip; <strong>IPv6-only unless the project has the IPv4 add-on<\/strong><\/td><td>Supabase direct connection from an IPv4 network.<\/td><td><a href=\"#supa-2\">Use the Session pooler string<\/a>.<\/td><\/tr>\n    <tr><td><strong>No such host is known.<\/strong> (on a Linux Agent, <strong>Name or service not known<\/strong>)<\/td><td>The host name is misspelt or unknown to the Agent&rsquo;s computer.<\/td><td>Copy the host again (<a href=\"#find-host\">where to find it<\/a>), or use the server&rsquo;s address instead of its name.<\/td><\/tr>\n    <tr><td><strong>Database &#39;sales&#39; does not exist on this server.<\/strong><\/td><td>Typo, or different capital letters.<\/td><td>Type the name exactly as pgAdmin lists it (<a href=\"#database-step\">the database step<\/a>).<\/td><\/tr>\n    <tr><td><strong>This login can&#39;t open database &#39;sales&#39;.<\/strong><\/td><td>The login lacks permission on that database, or the pg_hba.conf line names a different database.<\/td><td><a href=\"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/#pg-2\" data-qs-cta=\"related\">GRANT CONNECT<\/a>, or write <strong>all<\/strong> in <a href=\"#remote-4\">the pg_hba.conf line<\/a>.<\/td><\/tr>\n    <tr><td><strong>&lt;name&gt; doesn&#39;t exist or this login can&#39;t open it.<\/strong> (after Verify)<\/td><td>One of the three rows above.<\/td><td>Open <strong>What the agent said<\/strong> and match it here.<\/td><\/tr>\n    <tr><td>Red text under a box before you test<\/td><td>The provider card spotted a mismatch (wrong mode, port, username shape, or a placeholder password).<\/td><td>Your <a href=\"#hosted\">provider&rsquo;s section<\/a> quotes each one; pasting the provider&rsquo;s string again usually clears it.<\/td><\/tr>\n    <tr><td>The <strong>Test connection<\/strong> button is greyed out and hovering it says <strong>Agent is offline \u2014 start the agent to test the connection<\/strong><\/td><td>The Agent is not connected.<\/td><td><a href=\"https:\/\/querystreams.com\/docs\/is-the-agent-online\/\" data-qs-cta=\"related\">Is the Agent online?<\/a><\/td><\/tr>\n  <\/tbody>\n<\/table>\n\n<h2 id=\"next\">Next: use the data<\/h2>\n<ul>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-postgresql-to-excel\/\" data-qs-cta=\"related\">PostgreSQL to Excel<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-postgresql-to-google-sheets\/\" data-qs-cta=\"related\">PostgreSQL to Google Sheets<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-postgresql-to-claude-via-mcp\/\" data-qs-cta=\"related\">PostgreSQL in Claude and other AI assistants (MCP)<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/expose-postgresql-as-rest-api\/\" data-qs-cta=\"related\">PostgreSQL as a REST API<\/a><\/li>\n<\/ul>\n\n<div class=\"qs-d-support qs-d-support--foot\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Still stuck?<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams and tell us which step you are on and what you see. We will get you connected.<\/div><\/div>\n\n<h2 id=\"related\">Related guides<\/h2>\n<ul class=\"qs-d-related\">\n  <li><a href=\"https:\/\/querystreams.com\/docs\/create-a-read-only-database-user\/\" data-qs-cta=\"related\">Create a read-only database user<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/open-a-firewall-port-on-windows\/\" data-qs-cta=\"related\">Open a firewall port on Windows<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/is-the-agent-online\/\" data-qs-cta=\"related\">Is the Agent online?<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"related\">Install the Agent on Windows<\/a><\/li>\n  <li><a href=\"https:\/\/querystreams.com\/docs\/\" data-qs-cta=\"related\">All guides<\/a><\/li>\n<\/ul>\n<\/article>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[33],"doc_tag":[],"class_list":["post-7308","docs","type-docs","status-publish","hentry","doc_category-connector-setup"],"year_month":"2026-12","word_count":6390,"total_views":"47","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"\u7cfb\u7edf","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/zh\/author\/systemz\/"},"doc_category_info":[{"term_name":"Data Connector Setup","term_url":"https:\/\/querystreams.com\/zh\/docs-category\/connector-setup\/"}],"doc_tag_info":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"systemz","author_link":"https:\/\/querystreams.com\/zh\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/comments?post=7308"}],"version-history":[{"count":2,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7308\/revisions"}],"predecessor-version":[{"id":7379,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/docs\/7308\/revisions\/7379"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/media?parent=7308"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/doc_category?post=7308"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/zh\/wp-json\/wp\/v2\/doc_tag?post=7308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}