Skip to content

Commit 7bae1eb

Browse files
Added support for creating Directory nodes in EPAS. #8034
1 parent 4791897 commit 7bae1eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1641
-32
lines changed

docs/en_US/directory_dialog.rst

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
.. _directory_dialog:
2+
3+
*************************
4+
`Directory Dialog`:index:
5+
*************************
6+
7+
Use the Directory dialog to Create an alias for a file system directory path.
8+
To create directories, you must have the CREATE ANY DIRECTORY system privilege.
9+
When you create a directory, you are automatically granted READ and WRITE privileges
10+
on the directory, and you can grant READ and WRITE privileges to other users and roles.
11+
The superuser can also grant these privileges to other users and roles.
12+
13+
Please note that directories are supported when connected to EDB Postgres Advanced Server.
14+
For more information about using directories, please see the EDB Postgres Advanced Server Guide, available at:
15+
16+
https://www.enterprisedb.com/docs/epas/latest/epas_compat_sql/
17+
18+
19+
The *Directory* dialog organizes the definition of a directory through the
20+
following tabs: *General*, *Definition*, *Security*, and *SQL*.
21+
The *SQL* tab displays the SQL code generated by dialog selections.
22+
23+
.. image:: images/directory_general.png
24+
:alt: Directory general tab
25+
:align: center
26+
27+
Use the fields on the *General* tab to specify directory attributes:
28+
29+
* Use the *Name* field to add a directory alias name. This name will be displayed in the object explorer.
30+
* Select the owner of the directory from the drop-down listbox in the *Owner*
31+
field.
32+
33+
Click the *Definition* tab to continue.
34+
35+
.. image:: images/directory_definition.png
36+
:alt: Directory dialog definition tab
37+
:align: center
38+
39+
* Use the *Location* field to specify a fully qualified directory path represented
40+
by the alias name. The CREATE DIRECTORY command doesn't create the operating system directory.
41+
The physical directory must be created independently using operating system commands.
42+
43+
Click the *Security* tab to continue.
44+
45+
.. image:: images/directory_security.png
46+
:alt: Directory dialog security tab
47+
:align: center
48+
49+
NOTE:- This *Security* tab will be only available for EPAS 17.
50+
51+
Use the *Security* tab to assign privileges for the directory.
52+
53+
Use the *Privileges* panel to assign security privileges. Click the *Add* icon
54+
(+) to assign a set of privileges:
55+
56+
* Select the name of the role from the drop-down listbox in the *Grantee* field.
57+
* The current user, who is the default grantor for granting the privilege, is displayed in the *Grantor* field.
58+
* Click inside the *Privileges* field. Check the boxes to the left of one or
59+
more privileges to grant the selected privileges to the specified user.
60+
61+
Click the *Add* icon to assign additional sets of privileges; to discard a
62+
privilege, click the trash icon to the left of the row and confirm deletion in
63+
the *Delete Row* popup.
64+
65+
Click the *SQL* tab to continue.
66+
67+
Your entries in the *Directory* dialog generate a SQL command (see an example
68+
below). Use the *SQL* tab for review; revisit or switch tabs to make any changes
69+
to the SQL command.
70+
71+
Example
72+
*******
73+
74+
The following is an example of the sql command generated by user selections in
75+
the *Directory* dialog:
76+
77+
.. image:: images/directory_sql.png
78+
:alt: Directory dialog sql tab
79+
:align: center
80+
81+
The example shown demonstrates creating a directory named *test1*. It has a
82+
*location* value equal to */home/test_dir*.
83+
84+
* Click the *Info* button (i) to access online help.
85+
* Click the *Save* button to save work.
86+
* Click the *Close* button to exit without saving work.
87+
* Click the *Reset* button to restore configuration parameters.
37.2 KB
Loading
41.5 KB
Loading
62.4 KB
Loading
79.1 KB
Loading

docs/en_US/managing_cluster_objects.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ database, right-click on the *Databases* node, and select *Create Database...*
2020
tablespace_dialog
2121
replica_nodes_dialog
2222
pgd_replication_group_dialog
23-
role_reassign_dialog
23+
role_reassign_dialog
24+
directory_dialog

docs/en_US/resource_group_dialog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ connected to EDB Postgres Advanced Server; for more information about using
1313
resource groups, please see the EDB Postgres Advanced Server Guide, available
1414
at:
1515

16-
http://www.enterprisedb.com/
16+
https://www.enterprisedb.com/docs/epas/latest/epas_compat_sql/
1717

1818
Fields used to create a resource group are located on the *General* tab. The
1919
*SQL* tab displays the SQL code generated by your selections on the *Resource

web/pgadmin/browser/server_groups/servers/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def register(self, app, options):
331331
from .tablespaces import blueprint as module
332332
self.submodules.append(module)
333333

334+
from .directories import blueprint as module
335+
self.submodules.append(module)
336+
334337
from .replica_nodes import blueprint as module
335338
self.submodules.append(module)
336339

web/pgadmin/browser/server_groups/servers/databases/schemas/tables/tests/table_test_data.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"is_positive_test": true,
66
"inventory_data": {
77
"server_min_version": 100000,
8-
"skip_msg": "Identity columns are not supported by PPAS/PG 10.0 and below."
8+
"skip_msg": "Identity columns are not supported by EPAS/PG 10.0 and below."
99
},
1010
"test_data": {
1111
"description": "Create Table API Test",
@@ -111,7 +111,7 @@
111111
"is_positive_test": true,
112112
"inventory_data": {
113113
"server_min_version": 110000,
114-
"skip_msg": "Hash Partition are not supported by PPAS/PG 11.0 and below."
114+
"skip_msg": "Hash Partition are not supported by EPAS/PG 11.0 and below."
115115
},
116116
"test_data": {
117117
"is_partitioned": true,
@@ -150,7 +150,7 @@
150150
"is_positive_test": true,
151151
"inventory_data": {
152152
"server_min_version": 100000,
153-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
153+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
154154
},
155155
"test_data": {
156156
"is_partitioned": true,
@@ -204,7 +204,7 @@
204204
"is_positive_test": true,
205205
"inventory_data": {
206206
"server_min_version": 100000,
207-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
207+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
208208
},
209209
"test_data": {
210210
"is_partitioned": true,
@@ -241,7 +241,7 @@
241241
"is_positive_test": true,
242242
"inventory_data": {
243243
"server_min_version": 100000,
244-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
244+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
245245
},
246246
"test_data": {
247247
"is_partitioned": true,
@@ -297,7 +297,7 @@
297297
"is_positive_test": true,
298298
"inventory_data": {
299299
"server_min_version": 110000,
300-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
300+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
301301
},
302302
"test_data": {
303303
"is_partitioned": true,
@@ -344,7 +344,7 @@
344344
"is_positive_test": true,
345345
"inventory_data": {
346346
"server_min_version": 100000,
347-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
347+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
348348
},
349349
"test_data": {
350350
"is_partitioned": true,
@@ -383,7 +383,7 @@
383383
"is_positive_test": true,
384384
"inventory_data": {
385385
"server_min_version": 100000,
386-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
386+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
387387
},
388388
"test_data": {
389389
"is_partitioned": true,
@@ -434,7 +434,7 @@
434434
"is_positive_test": true,
435435
"inventory_data": {
436436
"server_min_version": 100000,
437-
"skip_msg": "Identity columns are not supported by PPAS/PG 10.0 and below."
437+
"skip_msg": "Identity columns are not supported by EPAS/PG 10.0 and below."
438438
},
439439
"test_data": {
440440
"table_name": "abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz123",
@@ -493,7 +493,7 @@
493493
"is_positive_test": false,
494494
"inventory_data": {
495495
"server_min_version": 100000,
496-
"skip_msg": "Identity columns are not supported by PPAS/PG 10.0 and below."
496+
"skip_msg": "Identity columns are not supported by EPAS/PG 10.0 and below."
497497
},
498498
"test_data": {
499499
"table_name": "",
@@ -553,7 +553,7 @@
553553
"is_positive_test": false,
554554
"inventory_data": {
555555
"server_min_version": 100000,
556-
"skip_msg": "Identity columns are not supported by PPAS/PG 10.0 and below."
556+
"skip_msg": "Identity columns are not supported by EPAS/PG 10.0 and below."
557557
},
558558
"test_data": {
559559
"description": "Create Table API Test",
@@ -1164,7 +1164,7 @@
11641164
"inventory_data": {
11651165
"is_partition": true,
11661166
"server_min_version": 100000,
1167-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1167+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
11681168
"partition_type": "range",
11691169
"mode": "create"
11701170
},
@@ -1184,7 +1184,7 @@
11841184
"inventory_data": {
11851185
"is_partition": true,
11861186
"server_min_version": 100000,
1187-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1187+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
11881188
"partition_type": "range",
11891189
"mode": "multilevel"
11901190
},
@@ -1204,7 +1204,7 @@
12041204
"inventory_data": {
12051205
"is_partition": true,
12061206
"server_min_version": 100000,
1207-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1207+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
12081208
"partition_type": "list",
12091209
"mode": "create"
12101210
},
@@ -1224,7 +1224,7 @@
12241224
"inventory_data": {
12251225
"is_partition": true,
12261226
"server_min_version": 100000,
1227-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1227+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
12281228
"partition_type": "list",
12291229
"mode": "multilevel"
12301230
},
@@ -1244,7 +1244,7 @@
12441244
"inventory_data": {
12451245
"is_partition": true,
12461246
"server_min_version": 100000,
1247-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1247+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
12481248
"partition_type": "range",
12491249
"mode": "detach"
12501250
},
@@ -1264,7 +1264,7 @@
12641264
"inventory_data": {
12651265
"is_partition": true,
12661266
"server_min_version": 100000,
1267-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1267+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
12681268
"partition_type": "list",
12691269
"mode": "detach"
12701270
},
@@ -1284,7 +1284,7 @@
12841284
"inventory_data": {
12851285
"is_partition": true,
12861286
"server_min_version": 100000,
1287-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1287+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
12881288
"partition_type": "range",
12891289
"mode": "attach"
12901290
},
@@ -1304,7 +1304,7 @@
13041304
"inventory_data": {
13051305
"is_partition": true,
13061306
"server_min_version": 100000,
1307-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below.",
1307+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below.",
13081308
"partition_type": "list",
13091309
"mode": "attach"
13101310
},
@@ -2145,7 +2145,7 @@
21452145
"is_positive_test": true,
21462146
"inventory_data": {
21472147
"server_min_version": 100000,
2148-
"skip_msg": "Partitioned table are not supported by PPAS/PG 10.0 and below."
2148+
"skip_msg": "Partitioned table are not supported by EPAS/PG 10.0 and below."
21492149
},
21502150
"test_data": {},
21512151
"mocking_required": false,

0 commit comments

Comments
 (0)