Samples
Detach the tablespacedisk1 from the conditions:
disk1 from all s that the current
user has permissions for:
Arguments
The syntax is:| Name | Type | Default | Required | Description |
|---|---|---|---|---|
tablespace | TEXT | - | ✔ | Tablespace to detach. |
hypertable | REGCLASS | - | ✖ | Hypertable to detach the tablespace from. |
if_attached | BOOLEAN | FALSE | ✖ | Set to true to avoid throwing an error if the tablespace is not attached to the given table. A notice is issued instead. |
Returns
| Name | Type | Description |
|---|---|---|
| detach_tablespace | INTEGER | The number of s from which the tablespace was detached. |
tablespace and hypertable arguments, returns 1 if the tablespace was successfully detached from the specified . When called with only the tablespace argument, returns the total number of s from which the tablespace was detached.