You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add documentation detailing how to update the key column without directly using UPDATE, because updating the rowid column doesn't work with supabase-wrappers
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,4 +91,25 @@ Usage
91
91
92
92
-**request_timeout** as *string*, optional, default = `30`
93
93
94
-
Timeout in seconds to each request after the connection has been established.
94
+
Timeout in seconds to each request after the connection has been established.
95
+
96
+
## What doesn't work
97
+
etcd_fdw supports almost all kinds of CRUD operations. What doesn't work is modifying the key (which is the rowid value) directly using `UPDATE` statements.
98
+
What does work is the following workflow:
99
+
```
100
+
etcd_fdw=# SELECT * FROM test;
101
+
key | value
102
+
-------+-------
103
+
bar | baz
104
+
foo | abc
105
+
(2 rows)
106
+
etcd_fdw=# INSERT INTO TEST (key,value) SELECT key || '_new', value FROM test;
107
+
INSERT 0 2
108
+
etcd_fdw=# DELETE FROM test WHERE NOT key LIKE '%_new';
0 commit comments