mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
Remove dsm_resize() and dsm_remap().
These interfaces were never used in core, didn't handle failure of posix_fallocate() correctly and weren't supported on all platforms. We agreed to remove them in 12. Author: Thomas Munro Reported-by: Andres Freund Discussion: https://postgr.es/m/CAA4eK1%2B%3DyAFUvpFoHXFi_gm8YqmXN-TtkFH%2BVYjvDLS6-SFq-Q%40mail.gmail.com
This commit is contained in:
@@ -59,7 +59,6 @@ typedef enum
|
||||
DSM_OP_CREATE,
|
||||
DSM_OP_ATTACH,
|
||||
DSM_OP_DETACH,
|
||||
DSM_OP_RESIZE,
|
||||
DSM_OP_DESTROY
|
||||
} dsm_op;
|
||||
|
||||
@@ -68,9 +67,6 @@ extern bool dsm_impl_op(dsm_op op, dsm_handle handle, Size request_size,
|
||||
void **impl_private, void **mapped_address, Size *mapped_size,
|
||||
int elevel);
|
||||
|
||||
/* Some implementations cannot resize segments. Can this one? */
|
||||
extern bool dsm_impl_can_resize(void);
|
||||
|
||||
/* Implementation-dependent actions required to keep segment until shutdown. */
|
||||
extern void dsm_impl_pin_segment(dsm_handle handle, void *impl_private,
|
||||
void **impl_private_pm_handle);
|
||||
|
||||
Reference in New Issue
Block a user