mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Show tablespace on partitions. Fixes #2551
This commit is contained in:
parent
4eefc52748
commit
07aa74eaf5
@ -19,9 +19,15 @@ CREATE {% if data.relpersistence %}UNLOGGED {% endif %}TABLE {{conn|qtIdent(data
|
||||
{% endif %}
|
||||
{{ data.partition_value }}{% if data.is_partitioned is defined and data.is_partitioned %}
|
||||
|
||||
PARTITION BY {{ data.partition_scheme }}{% endif %};
|
||||
PARTITION BY {{ data.partition_scheme }}{% endif %}
|
||||
{### SQL for Tablespace ###}
|
||||
{% if data.spcname %}
|
||||
|
||||
TABLESPACE {{ conn|qtIdent(data.spcname) }};
|
||||
{% else %}
|
||||
;
|
||||
|
||||
{% endif %}
|
||||
{### Alter SQL for Owner ###}
|
||||
{% if data.relowner %}
|
||||
|
||||
|
@ -1030,6 +1030,7 @@ class BaseTableView(PGChildNodeView):
|
||||
if not status:
|
||||
return internal_server_error(errormsg=rset)
|
||||
|
||||
if len(rset['rows']):
|
||||
sql_header = u"\n-- Partitions SQL"
|
||||
partition_sql = ''
|
||||
for row in rset['rows']:
|
||||
|
Loading…
Reference in New Issue
Block a user