Commit f680752
committed
replicators: Add an option to skip CREATE PUBLICATION in postgres
Readyset contains a command line option for disabling setting up
the DDL event triggers (--disable-setup-ddl-replication). This is
useful when the database user is not a superuser and triggers are
created manually.
CREATE PUBLICATION also requires superuser privileges. This commit
adds a new command line option, --disable-create-publication for
skipping publication creation. If this option is passed, the
publication has to be created manually before the replication starts.
Release-Note-Core: New option --disable-create-publication for skipping
creating a publication. Used when readyset is not running
as a superuser and the publication has been created manually.
Change-Id: If25d880f8730efd778c7d77d81c49ace428a0eea
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/7705
Tested-by: Buildkite CI
Reviewed-by: Vassili Zarouba <vassili@readyset.io>
Reviewed-by: Jason Brown <jason.b@readyset.io>1 parent 4127594 commit f680752
File tree
2 files changed
+29
-15
lines changed- database-utils/src
- replicators/src/postgres_connector
2 files changed
+29
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
244 | 251 | | |
245 | 252 | | |
246 | 253 | | |
| 254 | + | |
247 | 255 | | |
248 | 256 | | |
249 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
198 | 205 | | |
199 | | - | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
0 commit comments