[MDEV-15696] Implement SHOW CREATE SERVER Created: 2018-03-27 Updated: 2023-04-11 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Federated, Storage Engine - Spider |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | create_server, federated, federatedx, show, spider | ||
| Description |
|
CREATE SERVER is a valid statement in MariaDB: https://mariadb.com/kb/en/library/create-server/ However, it seems like SHOW CREATE SERVER isn't implemented yet. Maybe it would be worth implementing?
|
| Comments |
| Comment by Yuchen Pei [ 2023-03-29 ] |
|
This task itself looks it could be useful and easy to implement. sanja Is SHOW CREATE FOO part of the sql standard? I know for example SHOW CREATE TABLE it is not supported in postgresql. |
| Comment by Federico Razzoli [ 2023-04-11 ] |
|
It would be useful for humans, but scripts would have to parse the output SQL. Or the can query the `servers` table in the `mysql` database, which is currently the only way. But I believe that this is a bad practice. I'd suggest to add a table to the `information_schema`. I'm not filing a feature request because, if you decide to do it, I'm not sure if that would be part of this task. |