Skip to content

Commit b213530

Browse files
Deprecate postgresql_lang (#559) (#562)
* lang deprecated * lang deprecated * lang deprecated * postgresql_lang Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * lang deprecated --------- Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> (cherry picked from commit 5655558) Co-authored-by: Pavel Rabel <128324708+elpavel@users.noreply.github.com>
1 parent 5b32845 commit b213530

File tree

11 files changed

+14
-465
lines changed

11 files changed

+14
-465
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deprecated_features:
2+
- "postgresql_lang - the module has been deprecated and will be removed in ``community.postgresql 4.0.0``. Please use the ``postgresql_ext`` module instead (https://github.com/ansible-collections/community.postgresql/issues/559)."

meta/runtime.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ action_groups:
2525
- postgresql_tablespace
2626
- postgresql_user
2727
- postgresql_user_obj_stat_info
28+
plugin_routing:
29+
modules:
30+
postgresql_lang:
31+
deprecation:
32+
removal_version: 4.0.0
33+
warning_text: Use postgresql_ext instead.

plugins/modules/postgresql_lang.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
---
1313
module: postgresql_lang
1414
short_description: Adds, removes or changes procedural languages with a PostgreSQL database
15+
deprecated:
16+
removed_in: "4.0.0"
17+
why: As of PostgreSQL 9.1, most procedural languages have been made into extensions.
18+
alternative: Use M(community.postgresql.postgresql_ext) instead.
1519
description:
1620
- Adds, removes or changes procedural languages with a PostgreSQL database.
1721
- This module allows you to add a language, remote a language or change the trust
@@ -168,6 +172,8 @@
168172
sample: ['CREATE LANGUAGE "acme"']
169173
'''
170174

175+
# WARNING - The postgresql_lang module has been deprecated and will be removed in community.postgresql 4.0.0.
176+
171177
from ansible.module_utils.basic import AnsibleModule
172178
from ansible_collections.community.postgresql.plugins.module_utils.database import check_input
173179
from ansible_collections.community.postgresql.plugins.module_utils.postgres import (

tests/integration/targets/postgresql_lang/aliases

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/integration/targets/postgresql_lang/meta/main.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/integration/targets/postgresql_lang/tasks/main.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/integration/targets/postgresql_lang/tasks/postgresql_lang_add_owner_param.yml

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)