forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit42e44f3
committed
Handle compression level in pg_receivewal for LZ4
The new option set of pg_receivewal introduced in042a923 to control thecompression method makes it now easy to pass down various options,including the compression level. The change to be able to do is simple,and requires one LZ4F_preferences_t fed to LZ4F_compressBegin().Note that LZ4F_INIT_PREFERENCES could be used to initialize the contentsof LZ4F_preferences_t as required by LZ4, but this is only availablesince v1.8.3. memset()'ing its structure to 0 is enough.Discussion:https://postgr.es/m/YlPQGNAAa04raObK@paquier.xyz1 parent42dbbca commit42e44f3
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| 168 | + | |
168 | 169 |
| |
169 | 170 |
| |
170 | 171 |
| |
| |||
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
180 | 185 |
| |
181 |
| - | |
| 186 | + | |
182 | 187 |
| |
183 | 188 |
| |
184 | 189 |
| |
|
0 commit comments
Comments
(0)