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
Copy file name to clipboardExpand all lines: README.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ CREATE SERVER my_etcd_server foreign data wrapper etcd_fdw options (connstr '127
29
29
```
30
30
31
31
```sql
32
-
CREATE foreign table test (key text, value text) server my_etcd_server options(rowid'key');
32
+
CREATE foreign table test (key text, value text) server my_etcd_server options(rowid_column'key');
33
33
```
34
34
35
35
```sql
@@ -99,7 +99,7 @@ Usage
99
99
`etcd_fdw` accepts the following table-level options via the
100
100
`CREATE FOREIGN TABLE` command.
101
101
102
-
-**rowid** as *string*, mandatory, no default
102
+
-**rowid_column** as *string*, mandatory, no default
103
103
104
104
Specifies which column should be treated as the unique row identifier.
105
105
Usually set to key.
@@ -119,13 +119,30 @@ Usage
119
119
Read key-value data at a specific etcd revision.
120
120
If 0, the latest revision is used.
121
121
122
-
-**range** as *string*, optional, no default
122
+
-**key** as *string*, optional, no default
123
123
124
-
Restricts the scan to the half-open interval `[key, range)`.
125
-
Example: with range `/gamma` and scan starting at `/`, the query will return keys strictly less than `/gamma`.
124
+
The starting key to fetch from etcd.
126
125
126
+
This option defines the beginning of the range.
127
+
If neither `prefix` nor `key` is specified, the FDW will default to `\0` (the lowest possible key).
127
128
128
-
Note: Cannot be used together with `prefix`.
129
+
-**range_end** as *string*, optional, no default
130
+
131
+
The exclusive end of the key range. Restricts the scan to the half-open interval `[key, range_end)`.
132
+
133
+
All keys between key (inclusive) and range_end (exclusive) will be returned.
134
+
If range_end is omitted, only the single key defined by key will be returned (unless prefix is used).
135
+
136
+
-**consistency** as *string*, optional, default `l`
137
+
138
+
Specifies the read consistency level for etcd queries.
139
+
140
+
141
+
Linearizable(`l`), Ensures the result reflects the latest consensus state of the cluster.
142
+
Linearizable reads have higher latency but guarantee fresh data.
143
+
144
+
Serializable(`s`), Allows serving results from a local etcd member without cluster-wide consensus.
145
+
Serializable reads are faster and lighter on the cluster, but may return stale data in some cases
129
146
130
147
## What doesn't work
131
148
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.
0 commit comments