From 8e36b3d3e7e8bca95a271b0d65623c6a13982141 Mon Sep 17 00:00:00 2001 From: hello Date: Wed, 20 Nov 2024 21:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AC=94=E8=AE=B0=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/postgresql-master-slave.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/helloshop/postgresql-master-slave.md b/notes/helloshop/postgresql-master-slave.md index fcbb07d..221c56f 100644 --- a/notes/helloshop/postgresql-master-slave.md +++ b/notes/helloshop/postgresql-master-slave.md @@ -84,7 +84,7 @@ CREATE SUBSCRIPTION my_sub CONNECTION 'dbname=mydb1 host=postgres1_ip_address po 在 postgres1 主库 mydb1 中插入数据。 ```sql -INSERT INTO mytable VALUES ('hello'); +INSERT INTO mytable VALUES (1,'hello'); ``` 在 postgres2 从库 mydb2 中查询数据。