Skip to content

Commit 04f3403

Browse files
docs: use example.com hostnames instead of private IPs in FDW examples
Keeps the repo free of any private-IP patterns (consistent with the pre-commit secret guard) and reads as clearer documentation placeholders. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8234f84 commit 04f3403

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/04-EXTENSIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Quick taste:
2525

2626
```sql
2727
CREATE SERVER remote_pg FOREIGN DATA WRAPPER postgres_fdw
28-
OPTIONS (host '10.0.0.10', port '5432', dbname 'remote_db');
28+
OPTIONS (host 'remote-postgres.example.com', port '5432', dbname 'remote_db');
2929
CREATE USER MAPPING FOR CURRENT_USER SERVER remote_pg
3030
OPTIONS (user 'remote_user', password 'secret');
3131
IMPORT FOREIGN SCHEMA public FROM SERVER remote_pg INTO public;

scripts/fdw-examples/mysql_fdw.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
CREATE SERVER IF NOT EXISTS remote_mysql
66
FOREIGN DATA WRAPPER mysql_fdw
7-
OPTIONS (host '10.0.0.20', port '3306');
7+
OPTIONS (host 'remote-mysql.example.com', port '3306');
88

99
CREATE USER MAPPING IF NOT EXISTS FOR CURRENT_USER
1010
SERVER remote_mysql

scripts/fdw-examples/postgres_fdw.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-- 1) Define the remote server.
77
CREATE SERVER IF NOT EXISTS remote_pg
88
FOREIGN DATA WRAPPER postgres_fdw
9-
OPTIONS (host '10.0.0.10', port '5432', dbname 'remote_db');
9+
OPTIONS (host 'remote-postgres.example.com', port '5432', dbname 'remote_db');
1010

1111
-- 2) Map your local user to a remote login.
1212
CREATE USER MAPPING IF NOT EXISTS FOR CURRENT_USER

0 commit comments

Comments
 (0)