Debian Codegraph @

ansible_collections/community/postgresql/CHANGELOG.rst

raw
1 =============================================
2 Community PostgreSQL Collection Release Notes
3 =============================================
4
5 .. contents:: Topics
6
7 v4.2.0
8 ======
9
10 Release Summary
11 ---------------
12
13 This is a minor release of the ``community.postgresql`` collection.
14 This changelog contains all changes to the modules and plugins in this collection
15 that have been made after the previous release.
16
17 Minor Changes
18 -------------
19
20 - postgresql_privs - support MAINTAIN privilege on tables (added in PostgreSQL 17) (https://github.com/ansible-collections/community.postgresql/pull/888).
21
22 Bugfixes
23 --------
24
25 - postgresql_db - Fix connection limit not being set when value is "0" (https://github.com/ansible-collections/community.postgresql/issues/879).
26 - postgresql_db - fixed ``session_role`` parameter that was being ignored for raw connections (https://github.com/ansible-collections/community.postgresql/pull/865)
27 - postgresql_db - restoring from ``.sql`` files would execute the file twice. The module now avoids using both ``--file`` and stdin redirection simultaneously (https://github.com/ansible-collections/community.postgresql/issues/882).
28
29 v4.1.0
30 ======
31
32 Release Summary
33 ---------------
34
35 This is a minor release of the ``community.postgresql`` collection.
36 This changelog contains all changes to the modules and plugins in this collection
37 that have been made after the previous release.
38
39 Deprecated Features
40 -------------------
41
42 - postgresql modules - the ``port`` alias is deprecated and will be removed in ``community.postgresql 5.0.0``, use the ``login_port`` argument instead.
43
44 Bugfixes
45 --------
46
47 - postgresql_schema - change reported in check_mode was negated. Now it reports a change when removing an existing schema (https://github.com/ansible-collections/community.postgresql/pull/858)
48
49 v4.0.1
50 ======
51
52 Release Summary
53 ---------------
54
55 This is a patch release of the ``community.postgresql`` collection.
56 This changelog contains all changes to the modules and plugins in this collection
57 that have been made after the previous release.
58
59 Bugfixes
60 --------
61
62 - postgresql_alter_system - fix failure when max_val contains a huge number written in scientific notation (https://github.com/ansible-collections/community.postgresql/issues/853).
63
64 v4.0.0
65 ======
66
67 Release Summary
68 ---------------
69
70 This is a major release of the ``community.postgresql`` collection.
71 This changelog contains all changes to the modules and plugins in this collection
72 that have been made after the previous release.
73
74 Major Changes
75 -------------
76
77 - the collection does not test against Python 2 and starts accepting content written in Python 3 since collection version 4.0.0 (https://github.com/ansible-collections/community.postgresql/issues/829).
78
79 Minor Changes
80 -------------
81
82 - postgresql_user - return a PostgreSQL error message when a user cannot be removed.
83
84 Deprecated Features
85 -------------------
86
87 - postgresql modules = the ``login``, ``unix_socket`` and ``host`` aliases are deprecated and will be removed in ``community.postgresql 5.0.0``, use the ``login_user``, ``login_unix_socket`` and ``login_host`` arguments instead.
88 - postgresql_set - the module has been deprecated and will be removed in ``community.postgresql 5.0.0``. Please use the ``community.postgresql.postgresql_alter_system`` module instead (https://github.com/ansible-collections/community.postgresql/issues/823).
89
90 Removed Features (previously deprecated)
91 ----------------------------------------
92
93 - postgresql_info - the db alias has been removed in ``community.postgresql 4.0.0``. Please use the ``login_db`` option instead (https://github.com/ansible-collections/community.postgresql/issues/801).
94 - postgresql_lang - the module has been removed in ``community.postgresql 4.0.0``. Please use the ``community.postgresql.postgresql_ext`` module instead (https://github.com/ansible-collections/community.postgresql/issues/561).
95 - postgresql_privs - the ``password`` argument has been removed in ``community.postgresql 4.0.0``. Use the ``login_password`` argument instead (https://github.com/ansible-collections/community.postgresql/issues/408).
96 - postgresql_user - the ``priv`` argument has been removed in ``community.postgresql 4.0.0``. Please use the ``community.postgresql.postgresql_privs`` module to grant/revoke privileges instead (https://github.com/ansible-collections/community.postgresql/issues/493).
97
98 v3.14.0
99 =======
100
101 Release Summary
102 ---------------
103
104 This is a minor release of the ``community.postgresql`` collection.
105 This changelog contains all changes to the modules and plugins in this collection
106 that have been made after the previous release.
107
108 Deprecated Features
109 -------------------
110
111 - postgresql_copy - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
112 - postgresql_db - the ``rename`` choice of the state option is deprecated and will be removed in version 5.0.0, use the ``postgresql_query`` module instead.
113 - postgresql_ext - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
114 - postgresql_idx - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
115 - postgresql_membership - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
116 - postgresql_owner - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
117 - postgresql_ping - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
118 - postgresql_privs - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
119 - postgresql_publication - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
120 - postgresql_query - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
121 - postgresql_schema - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
122 - postgresql_script - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
123 - postgresql_sequence - the ``rename_to`` option is deprecated and will be removed in version 5.0.0, use the ``postgresql_query`` module instead.
124 - postgresql_sequence - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
125 - postgresql_set - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
126 - postgresql_slot - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
127 - postgresql_subscription - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
128 - postgresql_table - the ``rename`` option is deprecated and will be removed in version 5.0.0, use the ``postgresql_query module`` instead.
129 - postgresql_table - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
130 - postgresql_tablespace - the ``rename_to`` option is deprecated and will be removed in version 5.0.0, use the ``postgresql_query`` module instead.
131 - postgresql_tablespace - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
132 - postgresql_user_obj_stat_info - the parameter aliases db and database are deprecated and will be removed in community.postgresql 5.0.0. Use login_db instead.
133
134 v3.13.0
135 =======
136
137 Release Summary
138 ---------------
139
140 This is a minor release of the ``community.postgresql`` collection.
141 This changelog contains all changes to the modules and plugins in this collection
142 that have been made after the previous release.
143
144 Bugfixes
145 --------
146
147 - postgresql_table - consider schema name when checking for table (https://github.com/ansible-collections/community.postgresql/issues/817). Table names are only unique within a schema. This allows using the same table name in multiple schemas.
148
149 New Modules
150 -----------
151
152 - postgresql_alter_system - Change a PostgreSQL server configuration parameter
153
154 v3.12.0
155 =======
156
157 Release Summary
158 ---------------
159
160 This is a minor release of the ``community.postgresql`` collection.
161 This changelog contains all changes to the modules and plugins in this collection
162 that have been made after the previous release.
163
164 Minor Changes
165 -------------
166
167 - postgresql_publication - added ``rowfilters`` parameter that adds support for row filtering on PG publications (https://github.com/ansible-collections/community.postgresql/pull/813)
168
169 v3.11.0
170 =======
171
172 Release Summary
173 ---------------
174
175 This is a minor release of the ``community.postgresql`` collection.
176 This changelog contains all changes to the modules and plugins in this collection
177 that have been made after the previous release.
178
179 Minor Changes
180 -------------
181
182 - postgresql_pg_hba - adds 'pg_hba_string' which contains the string that is written to the file to the output of the module (https://github.com/ansible-collections/community.postgresql/pull/778)
183 - postgresql_pg_hba - adds a parameter 'sort_rules' that allows the user to disable sorting in the module, the default is the previous behavior (https://github.com/ansible-collections/community.postgresql/pull/778)
184 - postgresql_pg_hba - regarding #795 will read all kinds of includes and add them to the end of the file in the same order as they were in the original file, does not allow to add includes (https://github.com/ansible-collections/community.postgresql/pull/778)
185 - postgresql_user - now there is a ``quote_configuration_values`` parameter that allows to turn off quoting for values which when set to ``false`` allows to set ``search_path`` (https://github.com/ansible-collections/community.postgresql/pull/806)
186
187 Breaking Changes / Porting Guide
188 --------------------------------
189
190 - postgresql_info - the ``db`` alias is deprecated and will be removed in the next major release, use the ``login_db`` argument instead.
191 - postgresql_pg_hba - regarding #776 'keep_comments_at_rules' has been deprecated and won't do anything, the default is to keep the comments at the rules they are specified with. keep_comments_at_rules will be removed in 5.0.0 (https://github.com/ansible-collections/community.postgresql/pull/778)
192 - postgresql_user - the ``db`` alias is deprecated and will be removed in the next major release, use the ``login_db`` argument instead.
193
194 Bugfixes
195 --------
196
197 - postgresql_pg_hba - fixes #776 the module won't be adding/moving comments repeatedly if 'keep_comments_at_rules' is 'false' (https://github.com/ansible-collections/community.postgresql/pull/778)
198
199 v3.10.2
200 =======
201
202 Release Summary
203 ---------------
204
205 This is a patch release of the ``community.postgresql`` collection.
206 This changelog contains all changes to the modules and plugins in this collection
207 that have been made after the previous release.
208
209 Bugfixes
210 --------
211
212 - postgresql_info - fix failure when a default database is used (neither ``db`` nor ``login_db`` are specified) (https://github.com/ansible-collections/community.postgresql/issues/794).
213
214 v3.10.1
215 =======
216
217 Release Summary
218 ---------------
219
220 This is a patch release of the ``community.postgresql`` collection.
221 This changelog contains all changes to the modules and plugins in this collection
222 that have been made after the previous release.
223
224 Bugfixes
225 --------
226
227 - postgresql_info - fix module failure when the ``db`` parameter is used instead of ``login_db`` (https://github.com/ansible-collections/community.postgresql/issues/794).
228
229 v3.10.0
230 =======
231
232 Release Summary
233 ---------------
234
235 This is a minor release of the ``community.postgresql`` collection.
236 This changelog contains all changes to the modules and plugins in this collection
237 that have been made after the previous release.
238
239 Minor Changes
240 -------------
241
242 - postgresql_query - returns the `execution_time_ms` list containing execution time per query in milliseconds (https://github.com/ansible-collections/community.postgresql/issues/787).
243
244 Bugfixes
245 --------
246
247 - postgresql_info - fix issue when gathering information fails if user doesn't have access to all databases (https://github.com/ansible-collections/community.postgresql/pull/788).
248 - postgresql_privs - fix the error occurring when trying to grant a function execution and set the schema to not-specified (https://github.com/ansible-collections/community.postgresql/pull/783).
249
250 v3.9.1
251 ======
252
253 Release Summary
254 ---------------
255
256 This is a patch release of the ``community.postgresql`` collection.
257 This changelog contains all changes to the modules and plugins in this collection
258 that have been made after the previous release.
259
260 Bugfixes
261 --------
262
263 - postgresql_pg_hba - fixes #777 the module will ignore the 'address' and 'netmask' options again when the contype is 'local' (https://github.com/ansible-collections/community.postgresql/pull/779)
264
265 v3.9.0
266 ======
267
268 Release Summary
269 ---------------
270
271 This is a minor release of the ``community.postgresql`` collection.
272 This changelog contains all changes to the modules and plugins in this collection
273 that have been made after the previous release.
274
275 Minor Changes
276 -------------
277
278 - postgresql_pg_hba - changes ordering of entries that are identical except for the ip-range, but only if the ranges are of the same size, this isn't breaking as ranges of equal size can't overlap (https://github.com/ansible-collections/community.postgresql/pull/772)
279 - postgresql_pg_hba - orders auth-options alphabetically, this isn't breaking as the order of those options is not relevant to postgresql (https://github.com/ansible-collections/community.postgresql/pull/772)
280
281 v3.8.0
282 ======
283
284 Release Summary
285 ---------------
286
287 This is a minor release of the ``community.postgresql`` collection.
288 This changelog contains all changes to the modules and plugins in this collection
289 that have been made after the previous release.
290
291 Minor Changes
292 -------------
293
294 - postgresql_pg_hba - show the number of the line with the issue if parsing a file fails (https://github.com/ansible-collections/community.postgresql/pull/766)
295 - postgresql_publication - add possibility of creating publication with column list (https://github.com/ansible-collections/community.postgresql/pull/763).
296
297 Bugfixes
298 --------
299
300 - postgresql_pg_hba - fixes #420 by properly handling hash-symbols in quotes (https://github.com/ansible-collections/community.postgresql/pull/766)
301 - postgresql_pg_hba - fixes #705 by preventing invalid strings to be written (https://github.com/ansible-collections/community.postgresql/pull/761)
302 - postgresql_pg_hba - fixes #730 by extending the key we use to identify a rule with the connection type (https://github.com/ansible-collections/community.postgresql/pull/770)
303 - postgresql_pg_hba - improves parsing of quoted strings and escaped newlines (https://github.com/ansible-collections/community.postgresql/pull/761)
304 - postgresql_user - doesn't take password_encryption into account when checking if a password should be updated (https://github.com/ansible-collections/community.postgresql/issues/688).
305
306 v3.7.0
307 ======
308
309 Release Summary
310 ---------------
311
312 This is a minor release of the ``community.postgresql`` collection.
313 This changelog contains all changes to the modules and plugins in this collection
314 that have been made after the previous release.
315
316 Minor Changes
317 -------------
318
319 - postgresql_set - adds the ``queries`` return value to return executed DML statements.
320
321 Bugfixes
322 --------
323
324 - postgresql_set - fixes resetting logic to allow resetting shared_preload_libraries with ``reset: true`` (https://github.com/ansible-collections/community.postgresql/issues/744).
325 - postgresql_set - forbids resetting shared_preload_libraries by passing an empty string (https://github.com/ansible-collections/community.postgresql/issues/744).
326
327 v3.6.1
328 ======
329
330 Release Summary
331 ---------------
332
333 This is a patch release of the ``community.postgresql`` collection.
334 This changelog contains all changes to the modules and plugins in this collection
335 that have been added after the previous release.
336
337 Bugfixes
338 --------
339
340 - postgresql_user - remove a comment from unit tests that breaks pre-compile (https://github.com/ansible-collections/community.postgresql/issues/737).
341
342 v3.6.0
343 ======
344
345 Release Summary
346 ---------------
347
348 This is a minor release of the ``community.postgresql`` collection.
349 This changelog contains all changes to the modules and plugins in this collection
350 that have been made after the previous release.
351
352 Minor Changes
353 -------------
354
355 - postgresql_privs - adds support for granting and revoking privileges on foreign tables (https://github.com/ansible-collections/community.postgresql/issues/724).
356 - postgresql_subscription - adds support for managing subscriptions in the situation where the ``subconninfo`` column is unavailable (such as in CloudSQL) (https://github.com/ansible-collections/community.postgresql/issues/726).
357
358 Bugfixes
359 --------
360
361 - postgresql_db - fix issues due to columns in pg_database changing in Postgres 17. (https://github.com/ansible-collections/community.postgresql/issues/729).
362 - postgresql_info - Use a server check that works on beta and rc versions as well as on actual releases.
363
364 v3.5.0
365 ======
366
367 Release Summary
368 ---------------
369
370 This is a minor release of the ``community.postgresql`` collection.
371 This changelog contains all changes to the modules and plugins in this collection
372 that have been made after the previous release.
373
374 Minor Changes
375 -------------
376
377 - postgres - add support for postgres ``infinity`` timestamps by replacing them with ``datetime.min`` / ``datetime.max`` values (https://github.com/ansible-collections/community.postgresql/pull/714).
378 - postgresql_publication - add the ``tables_in_schema`` argument to implement ``FOR TABLES IN SCHEMA`` feature (https://github.com/ansible-collections/community.postgresql/issues/709).
379 - postgresql_user - adds the ``configuration`` argument that allows to manage user-specific default configuration (https://github.com/ansible-collections/community.postgresql/issues/598).
380
381 Bugfixes
382 --------
383
384 - postgres - psycopg2 automatically sets the datestyle on the connection to iso whenever it encounters a datestyle configuration it doesn't recognize, but psycopg3 does not. Fix now enforces iso datestyle when using psycopg3 (https://github.com/ansible-collections/community.postgresql/issues/711).
385
386 v3.4.1
387 ======
388
389 Release Summary
390 ---------------
391
392 This is a patch release of the ``community.postgresql`` collection.
393 This changelog contains all changes to the modules and plugins in this collection
394 that have been added after the release of ``community.postgresql`` 3.4.0.
395
396 Bugfixes
397 --------
398
399 - postgresql_db - ``restore`` custom format as file instead of stdin to allow the use of --job flag in ``target_opts`` (https://github.com/ansible-collections/community.postgresql/issues/594).
400 - postgresql_ext - Reconnect before upgrade to avoid accidental load of the upgraded extension (https://github.com/ansible-collections/community.postgresql/pull/689).
401 - postgresql_idx - consider schema name when checking for index (https://github.com/ansible-collections/community.postgresql/issues/692). Index names are only unique within a schema. This allows using the same index name in multiple schemas.
402 - postgresql_privs - Enables the ability to revoke functions from user (https://github.com/ansible-collections/community.postgresql/issues/687).
403
404 v3.4.0
405 ======
406
407 Release Summary
408 ---------------
409
410 This is a minor release of the ``community.postgresql`` collection.
411 This changelog contains all changes to the modules and plugins in this collection
412 that have been made after the previous release.
413
414 Minor Changes
415 -------------
416
417 - postgresql_db - add the ``icu_locale`` argument (https://github.com/ansible-collections/community.postgresql/issues/666).
418 - postgresql_db - add the ``locale_provider`` argument (https://github.com/ansible-collections/community.postgresql/issues/666).
419
420 Bugfixes
421 --------
422
423 - postgresql_privs - fix a failure when altering privileges with ``grant_option: true`` (https://github.com/ansible-collections/community.postgresql/issues/668).
424
425 v3.3.0
426 ======
427
428 Release Summary
429 ---------------
430
431 This is the minor release of the ``community.postgresql`` collection.
432 This changelog contains all changes to the modules and plugins in this collection
433 that have been made after the previous release.
434
435 Minor Changes
436 -------------
437
438 - postgresql_db - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/614).
439 - postgresql_ext - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/354).
440 - postgresql_publication - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/354).
441 - postgresql_schema - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/354).
442 - postgresql_subscription - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/354).
443 - postgresql_tablespace - add the ``comment`` argument (https://github.com/ansible-collections/community.postgresql/issues/354).
444
445 Bugfixes
446 --------
447
448 - postgresql_query - now reports not changed for queries starting with "SHOW" (https://github.com/ansible-collections/community.postgresql/pull/592).
449 - postgresql_user - module failed when running against an SQL_ASCII encoded database as the user's current password was returned as bytes as opposed to a str. Fix now checks for this case and decodes the bytes as an ascii encoded string. (https://github.com/ansible-collections/community.postgresql/issues/584).
450
451 v3.2.0
452 ======
453
454 Release Summary
455 ---------------
456
457 This is the minor release of the ``community.postgresql`` collection.
458 This changelog contains all changes to the modules and plugins in this collection
459 that have been made after the previous release.
460
461 Minor Changes
462 -------------
463
464 - postgres modules - added support for Psycopg 3 library (https://github.com/ansible-collections/community.postgresql/pull/517).
465 - postgresql_owner - added support at new object types (https://github.com/ansible-collections/community.postgresql/pull/555).
466
467 Bugfixes
468 --------
469
470 - postgresql_info - fix SQL syntax issue (https://github.com/ansible-collections/community.postgresql/issues/570).
471
472 v3.1.0
473 ======
474
475 Release Summary
476 ---------------
477
478 This is the minor release of the ``community.postgresql`` collection.
479 This changelog contains all changes to the modules and plugins in this collection
480 that have been made after the previous release.
481
482 Major Changes
483 -------------
484
485 - postgres modules - the minimum version of psycopg2 library the collection supports is 2.5.1 (https://github.com/ansible-collections/community.postgresql/pull/556).
486
487 Minor Changes
488 -------------
489
490 - Collection core functions - use ``get_server_version`` in all modules (https://github.com/ansible-collections/community.postgresql/pull/518)."
491 - Collection core functions - use common cursor arguments in all modules (https://github.com/ansible-collections/community.postgresql/pull/522)."
492 - postgresql_ext - added idempotence always both in standard and in check mode (https://github.com/ansible-collections/community.postgresql/pull/545).
493 - postgresql_ext - added idempotence when version=latest (https://github.com/ansible-collections/community.postgresql/pull/504).
494 - postgresql_ext - added prev_version and version return values (https://github.com/ansible-collections/community.postgresql/pull/545).
495 - postgresql_ext - added queries in module output also in check mode (https://github.com/ansible-collections/community.postgresql/pull/545).
496 - postgresql_ext - improved error messages (https://github.com/ansible-collections/community.postgresql/pull/545).
497 - postgresql_privs - added idempotence when roles=PUBLIC (https://github.com/ansible-collections/community.postgresql/pull/502).
498 - postgresql_privs - added parameters privileges support for PostgreSQL 15 or higher (https://github.com/ansible-collections/community.postgresql/issues/481).
499 - postgresql_privs - added support for implicit roles CURRENT_ROLE, CURRENT_USER, and SESSION_USER (https://github.com/ansible-collections/community.postgresql/pull/502).
500 - postgresql_tablespace - added idempotence when dropping a non-existing tablespace (https://github.com/ansible-collections/community.postgresql/pull/554).
501
502 Deprecated Features
503 -------------------
504
505 - 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).
506
507 Bugfixes
508 --------
509
510 - postgresql_ext - fixed queries return value name in documentation (https://github.com/ansible-collections/community.postgresql/pull/545).
511 - postgresql_privs - fixed error message and documentation (https://github.com/ansible-collections/community.postgresql/pull/510).
512 - postgresql_set - fixed GUC_LIST_QUOTE parameters (https://github.com/ansible-collections/community.postgresql/pull/521).
513 - postgresql_set - fixed error message in param_set function (https://github.com/ansible-collections/community.postgresql/pull/505).
514
515 v3.0.0
516 ======
517
518 Release Summary
519 ---------------
520
521 This is a major release of the ``community.postgresql`` collection.
522 This changelog contains all changes to the modules in this collection that
523 have been added after the release of ``community.postgresql`` 2.4.2.
524
525 Major Changes
526 -------------
527
528 - postgresql_pg_hba - remove the deprecated ``order`` argument. The sortorder ``sdu`` is hardcoded (https://github.com/ansible-collections/community.postgresql/pull/496).
529 - postgresql_privs - remove the deprecated ``usage_on_types`` argument. Use the ``type`` option of the ``type`` argument to explicitly manipulate privileges on PG types (https://github.com/ansible-collections/community.postgresql/issues/208).
530 - postgresql_query - remove the deprecated ``path_to_script`` and ``as_single_query`` arguments. Use the ``postgresql_script`` module to run queries from scripts (https://github.com/ansible-collections/community.postgresql/issues/189).
531 - postgresql_user - move the deprecated ``privs`` argument removal to community.postgresql 4.0.0 (https://github.com/ansible-collections/community.postgresql/issues/493).
532 - postgresql_user - remove the deprecated ``groups`` argument. Use the ``postgresql_membership`` module instead (https://github.com/ansible-collections/community.postgresql/issues/300).
533
534 v2.4.2
535 ======
536
537 Release Summary
538 ---------------
539
540 This is a bugfix release of the ``community.postgresql`` collection.
541 This changelog contains all changes to the modules in this collection that
542 have been added after release 2.4.1.
543
544 Bugfixes
545 --------
546
547 - postgresql_db - when the task is completed successfully, close the database connection (https://github.com/ansible-collections/community.postgresql/issues/465).
548 - postgresql_info - when the task is completed successfully, close the database connection (https://github.com/ansible-collections/community.postgresql/issues/465).
549 - postgresql_ping - when the task is completed successfully, close the database connection (https://github.com/ansible-collections/community.postgresql/issues/465).
550 - postgresql_privs - when the task is completed successfully, close the database connection (https://github.com/ansible-collections/community.postgresql/issues/465).
551
552 v2.4.1
553 ======
554
555 Release Summary
556 ---------------
557
558 This is the bugfix release of the ``community.postgresql`` collection.
559 This changelog contains all changes to the modules in this collection that
560 have been added after release 2.4.0.
561
562 Bugfixes
563 --------
564
565 - postgresql_privs - fix a breaking change related to handling the ``password`` argument (https://github.com/ansible-collections/community.postgresql/pull/463).
566
567 v2.4.0
568 ======
569
570 Release Summary
571 ---------------
572
573 This is the minor release of the ``community.postgresql`` collection.
574 This changelog contains all changes to the modules in this collection that
575 have been added after the release of ``community.postgresql`` 2.3.2.
576
577 Major Changes
578 -------------
579
580 - postgresql_privs - the ``password`` argument is deprecated and will be removed in community.postgresql 4.0.0, use the ``login_password`` argument instead (https://github.com/ansible-collections/community.postgresql/issues/406).
581
582 Minor Changes
583 -------------
584
585 - Add support for module_defaults with action_group ``all`` (https://github.com/ansible-collections/community.postgresql/pull/430).
586 - postgresql - added new parameters ``ssl_cert`` and ``ssl_key`` for ssl connection (https://github.com/ansible-collections/community.postgresql/issues/424).
587 - postgresql - when receiving the connection parameters, the ``PGPORT`` and ``PGUSER`` environment variables are checked. The order of assigning values ``environment variables`` -> ``default values`` -> ``set values`` (https://github.com/ansible-collections/community.postgresql/issues/311).
588 - postgresql_query - a list of queries can be passed as the ``query`` argument's value, the results will be stored in the ``query_all_results`` return value (is not deprecated anymore, as well as ``query_list``) (https://github.com/ansible-collections/community.postgresql/issues/312).
589
590 Bugfixes
591 --------
592
593 - postgresql_info - add support for non numeric extension version (https://github.com/ansible-collections/community.postgresql/issues/428).
594 - postgresql_info - when getting information about subscriptions, check the list of available columns in the pg_subscription table (https://github.com/ansible-collections/community.postgresql/issues/429).
595 - postgresql_privs - fix connect_params being ignored (https://github.com/ansible-collections/community.postgresql/issues/450).
596 - postgresql_query - could crash under certain conditions because of a missing import to `psycopg2.extras` (https://github.com/ansible-collections/community.postgresql/issues/283).
597 - postgresql_set - avoid throwing ValueError for IP addresses and other values that may look like a number, but which are not (https://github.com/ansible-collections/community.postgresql/pull/422).
598 - postgresql_set - avoid wrong values for single-value parameters containing commas (https://github.com/ansible-collections/community.postgresql/pull/400).
599 - postgresql_user - properly close DB connections to prevent possible connection limit exhaustion (https://github.com/ansible-collections/community.postgresql/issues/431).
600
601 v2.3.2
602 ======
603
604 Release Summary
605 ---------------
606
607 This is the bugfix release of the ``community.postgresql`` collection.
608 This changelog contains all changes to the modules in this collection that
609 have been added after release 2.3.1.
610
611 Bugfixes
612 --------
613
614 - postgresql_pg_hba - fix ``changed`` return value for when ``overwrite`` is enabled (https://github.com/ansible-collections/community.postgresql/pull/378).
615 - postgresql_privs - fix quoting of the ``schema`` parameter in SQL statements (https://github.com/ansible-collections/community.postgresql/pull/382).
616 - postgresql_privs - raise an error when the ``objs: ALL_IN_SCHEMA`` is used with a value of ``type`` that is not ``table``, ``sequence``, ``function`` or ``procedure`` (https://github.com/ansible-collections/community.postgresql/issues/379).
617
618 v2.3.1
619 ======
620
621 Release Summary
622 ---------------
623
624 This is the bugfix release of the ``community.postgresql`` collection.
625 This changelog contains all changes to the modules in this collection that
626 have been added after release 2.3.0.
627
628 Bugfixes
629 --------
630
631 - postgresql_privs - fails with ``type=default_privs``, ``privs=ALL``, ``objs=ALL_DEFAULT`` (https://github.com/ansible-collections/community.postgresql/issues/373).
632
633 v2.3.0
634 ======
635
636 Release Summary
637 ---------------
638
639 This is the minor release of the ``community.postgresql`` collection.
640 This changelog contains all changes to the modules in this collection that
641 have been added after the release of ``community.postgresql`` 2.2.0.
642
643 Minor Changes
644 -------------
645
646 - postgresql_* - add the ``connect_params`` parameter dict to allow any additional ``libpg`` connection parameters (https://github.com/ansible-collections/community.postgresql/pull/329).
647
648 Bugfixes
649 --------
650
651 - postgresql_info - make arguments passed to SHOW command properly quoted to prevent the interpreter evaluating them (https://github.com/ansible-collections/community.postgresql/issues/314).
652 - postgresql_pg_hba - support the connection types ``hostgssenc`` and ``hostnogssenc`` (https://github.com/ansible-collections/community.postgresql/pull/351).
653 - postgresql_privs - add support for alter default privileges grant usage on schemas (https://github.com/ansible-collections/community.postgresql/issues/332).
654 - postgresql_privs - cannot grant select on objects in all schemas; add the ``not-specified`` value to the ``schema`` parameter to make this possible (https://github.com/ansible-collections/community.postgresql/issues/332).
655 - postgresql_set - avoid postgres puts extra quotes when passing values containing commas (https://github.com/ansible-collections/community.postgresql/issues/78).
656 - postgresql_user - make the module idempotent when password is scram hashed (https://github.com/ansible-collections/community.postgresql/issues/301).
657
658 v2.2.0
659 ======
660
661 Release Summary
662 ---------------
663
664 This is the minor release of the ``community.postgresql`` collection.
665 This changelog contains all changes to the modules in this collection that
666 have been added after the release of ``community.postgresql`` 2.1.5.
667
668 Major Changes
669 -------------
670
671 - postgresql_user - the ``groups`` argument has been deprecated and will be removed in ``community.postgresql 3.0.0``. Please use the ``postgresql_membership`` module to specify group/role memberships instead (https://github.com/ansible-collections/community.postgresql/issues/277).
672
673 Minor Changes
674 -------------
675
676 - postgresql_membership - add the ``exact`` state value to be able to specify a list of only groups a user must be a member of (https://github.com/ansible-collections/community.postgresql/issues/277).
677 - postgresql_pg_hba - add argument ``overwrite`` (bool, default: false) to remove unmanaged rules (https://github.com/ansible-collections/community.postgresql/issues/297).
678 - postgresql_pg_hba - add argument ``rules_behavior`` (choices: conflict (default), combine) to fail when ``rules`` and normal rule-specific arguments are given or, when ``combine``, use them as defaults for the ``rules`` items (https://github.com/ansible-collections/community.postgresql/issues/297).
679 - postgresql_pg_hba - add argument ``rules`` to specify a list of rules using the normal rule-specific argument in each item (https://github.com/ansible-collections/community.postgresql/issues/297).
680
681 Bugfixes
682 --------
683
684 - Include ``simplified_bsd.txt`` license file for various module utils.
685 - postgresql_info - fix pg version parsing (https://github.com/ansible-collections/community.postgresql/issues/315).
686 - postgresql_ping - fix pg version parsing (https://github.com/ansible-collections/community.postgresql/issues/315).
687 - postgresql_privs.py - add functionality when the PostgreSQL version is 9.0.0 or greater to incorporate ``ALL x IN SCHEMA`` syntax (https://github.com/ansible-collections/community.postgresql/pull/282). Please see the official documentation for details regarding grants (https://www.postgresql.org/docs/9.0/sql-grant.html).
688 - postgresql_subscription - fix idempotence by casting the ``connparams`` dict variable (https://github.com/ansible-collections/community.postgresql/issues/280).
689 - postgresql_user - add ``alter user``-statements in the return value ``queries`` (https://github.com/ansible-collections/community.postgresql/issues/307).
690
691 v2.1.5
692 ======
693
694 Release Summary
695 ---------------
696
697 This is the bugfix release of the ``community.postgresql`` collection.
698 This changelog contains all changes to the modules in this collection that
699 have been added after the release of ``community.postgresql`` 2.1.4
700
701 Bugfixes
702 --------
703
704 - Include ``PSF-license.txt`` file for ``plugins/module_utils/_version.py``.
705 - collection core functions - fix attribute error `nonetype` by always calling `ensure_required_libs` (https://github.com/ansible-collections/community.postgresql/issues/252).
706
707 v2.1.4
708 ======
709
710 Release Summary
711 ---------------
712
713 This is the minor release of the ``community.postgresql`` collection.
714 This changelog contains all changes to the modules in this collection that
715 have been added after the release of ``community.postgresql`` 2.1.3.
716
717 Major Changes
718 -------------
719
720 - The community.postgresql collection no longer supports ``Ansible 2.9`` and ``ansible-base 2.10``. While we take no active measures to prevent usage and there are no plans to introduce incompatible code to the modules, we will stop testing against ``Ansible 2.9`` and ``ansible-base 2.10``. Both will very soon be End of Life and if you are still using them, you should consider upgrading to the ``latest Ansible / ansible-core 2.11 or later`` as soon as possible (https://github.com/ansible-collections/community.postgresql/pull/245).
721
722 v2.1.3
723 ======
724
725 Release Summary
726 ---------------
727
728 This is the minor release of the ``community.postgresql`` collection.
729 This changelog contains all changes to the modules in this collection that
730 have been added after the release of ``community.postgresql`` 2.1.2.
731
732 Major Changes
733 -------------
734
735 - postgresql_user - the ``priv`` argument has been deprecated and will be removed in ``community.postgresql 3.0.0``. Please use the ``postgresql_privs`` module to grant/revoke privileges instead (https://github.com/ansible-collections/community.postgresql/issues/212).
736
737 Bugfixes
738 --------
739
740 - postgresql_db - get rid of the deprecated psycopg2 connection alias ``database`` in favor of ``dbname`` when psycopg2 is 2.7+ is used (https://github.com/ansible-collections/community.postgresql/issues/194, https://github.com/ansible-collections/community.postgresql/pull/196).
741
742 v2.1.2
743 ======
744
745 Release Summary
746 ---------------
747
748 This is the patch release of the `community.postgresql` collection. This changelog contains all changes to the modules in this collection that have been added after the release of `community.postgresql` 2.1.1.
749
750 Major Changes
751 -------------
752
753 - postgresql_privs - the ``usage_on_types`` feature have been deprecated and will be removed in ``community.postgresql 3.0.0``. Please use the ``type`` option with the ``type`` value to explicitly grant/revoke privileges on types (https://github.com/ansible-collections/community.postgresql/issues/207).
754
755 v2.1.1
756 ======
757
758 Release Summary
759 ---------------
760
761 This is the bugfix release of the community.postgresql collection.
762 This changelog contains all changes to the modules in this collection that have been added after the release of community.postgresql 2.1.0.
763
764 Bugfixes
765 --------
766
767 - module core functions - get rid of the deprecated psycopg2 connection alias ``database`` in favor of ``dbname`` when psycopg2 is 2.7+ (https://github.com/ansible-collections/community.postgresql/pull/196).
768 - postgresql_query - cannot handle .sql file with \\n at end of file (https://github.com/ansible-collections/community.postgresql/issues/180).
769
770 v2.1.0
771 ======
772
773 Release Summary
774 ---------------
775
776 This is the minor release of the ``community.postgresql`` collection.
777 This changelog contains all changes to the modules in this collection that
778 have been added after the release of ``community.postgresql`` 2.0.0.
779
780 Major Changes
781 -------------
782
783 - postgresql_query - the ``path_to_script`` and ``as_single_query`` options as well as the ``query_list`` and ``query_all_results`` return values have been deprecated and will be removed in ``community.postgresql 3.0.0``. Please use the ``community.postgresql.postgresql_script`` module to execute statements from scripts (https://github.com/ansible-collections/community.postgresql/issues/189).
784
785 New Modules
786 -----------
787
788 - postgresql_script - Run PostgreSQL statements from a file
789
790 v2.0.0
791 ======
792
793 Release Summary
794 ---------------
795
796 This is the major release of the ``community.postgresql`` collection.
797 This changelog contains all changes to the modules in this collection that
798 have been added after the release of ``community.postgresql`` 1.7.0.
799
800 Major Changes
801 -------------
802
803 - postgresql_query - the default value of the ``as_single_query`` option changes to ``yes``. If the related behavior of your tasks where the module is involved changes, please adjust the parameter's value correspondingly (https://github.com/ansible-collections/community.postgresql/issues/85).
804
805 v1.6.1
806 ======
807
808 Release Summary
809 ---------------
810
811 This is the bugfix release of the ``community.postgresql`` collection.
812 This changelog contains all changes to the modules in this collection that
813 have been added after the release of ``community.postgresql`` 1.6.1.
814
815 Bugfixes
816 --------
817
818 - Collection core functions - use vendored version of ``distutils.version`` instead of the deprecated Python standard library ``distutils`` (https://github.com/ansible-collections/community.postgresql/pull/179).
819 - postgres_info - It now works on AWS RDS Postgres.
820 - postgres_info - Specific info (namespaces, extensions, languages) of each database was not being shown properly. Instead, the info from the DB that was connected was always being shown (https://github.com/ansible-collections/community.postgresql/issues/172).
821
822 v1.6.0
823 ======
824
825 Release Summary
826 ---------------
827
828 This is the minor release of the ``community.postgresql`` collection.
829 This changelog contains all changes to the modules in this collection that
830 have been added after the release of ``community.postgresql`` 1.5.0.
831
832 Bugfixes
833 --------
834
835 - postgresql_ext - Handle postgresql extension updates through path validation instead of version comparison (https://github.com/ansible-collections/community.postgresql/issues/129).
836
837 v1.5.0
838 ======
839
840 Release Summary
841 ---------------
842
843 This is the minor release of the ``community.postgresql`` collection.
844 This changelog contains all changes to the modules in this collection that
845 have been added after the release of ``community.postgresql`` 1.4.0.
846
847 Minor Changes
848 -------------
849
850 - postgresql_db - Add the ``force`` boolean option to drop active connections first and then remove the database (https://github.com/ansible-collections/community.postgresql/issues/109).
851 - postgresql_info - Add the ``raw`` return value for extension version (https://github.com/ansible-collections/community.postgresql/pull/138).
852 - postgresql_pg_hba - Add the parameters ``keep_comments_at_rules`` and ``comment`` (https://github.com/ansible-collections/community.postgresql/issues/134).
853
854 Bugfixes
855 --------
856
857 - postgresql_ext - Fix extension version handling when it has 0 value (https://github.com/ansible-collections/community.postgresql/issues/136).
858 - postgresql_info - Fix extension version handling when it has 0 value (https://github.com/ansible-collections/community.postgresql/issues/137).
859 - postgresql_set - Fix wrong numerical value conversion (https://github.com/ansible-collections/community.postgresql/issues/110).
860 - postgresql_slot - Correct the server_version check for PG 9.6 (https://github.com/ansible-collections/community.postgresql/issue/120)
861
862 v1.4.0
863 ======
864
865 Release Summary
866 ---------------
867
868 This is the minor release of the ``community.postgresql`` collection.
869 This changelog contains all changes to the modules in this collection that
870 have been added after the release of ``community.postgresql`` 1.3.0.
871
872 Minor Changes
873 -------------
874
875 - postgresql_db - add support for the ``directory`` format when the ``state`` option is ``dump`` or ``restore`` (https://github.com/ansible-collections/community.postgresql/pull/108).
876 - postgresql_db - add the ``rename`` value to the ``state`` option (https://github.com/ansible-collections/community.postgresql/pull/107).
877
878 v1.3.0
879 ======
880
881 Release Summary
882 ---------------
883
884 This is the minor release of the ``community.postgresql`` collection.
885 This changelog contains all changes to the modules in this collection that
886 have been added after the release of ``community.postgresql`` 1.2.0.
887
888 Major Changes
889 -------------
890
891 - postgresql_query - the default value of the ``as_single_query`` option will be changed to ``yes`` in community.postgresql 2.0.0 (https://github.com/ansible-collections/community.postgresql/issues/85).
892
893 Bugfixes
894 --------
895
896 - postgresql_privs - fix ``fail_on_role`` check (https://github.com/ansible-collections/community.postgresql/pull/82).
897
898 v1.2.0
899 ======
900
901 Release Summary
902 ---------------
903
904 This is the minor release of the ``community.postgresql`` collection.
905 This changelog contains all changes to the modules in this collection that
906 have been added after the release of ``community.postgresql`` 1.1.1.
907
908 Minor Changes
909 -------------
910
911 - postgresql_info - add the ``patch``, ``full``, and ``raw`` values of the ``version`` return value (https://github.com/ansible-collections/community.postgresql/pull/68).
912 - postgresql_ping - add the ``patch``, ``full``, and ``raw`` values of the ``server_version`` return value (https://github.com/ansible-collections/community.postgresql/pull/70).
913
914 v1.1.1
915 ======
916
917 Release Summary
918 ---------------
919
920 This is the patch release of the ``community.postgresql`` collection.
921 This changelog contains all changes to the modules in this collection that
922 have been added after the release of ``community.postgresql`` 1.1.0.
923
924 Bugfixes
925 --------
926
927 - postgresql_query - add a warning to set ``as_single_query`` option explicitly (https://github.com/ansible-collections/community.postgresql/pull/54).
928 - postgresql_query - fix datetime.timedelta type handling (https://github.com/ansible-collections/community.postgresql/issues/47).
929 - postgresql_query - fix decimal handling (https://github.com/ansible-collections/community.postgresql/issues/45).
930 - postgresql_set - fails in check_mode on non-numeric values containing `B` (https://github.com/ansible-collections/community.postgresql/issues/48).
931
932 v1.1.0
933 ======
934
935 Release Summary
936 ---------------
937
938 This is the minor release of the ``community.postgresql`` collection.
939 This changelog contains all changes to the modules in this collection that
940 have been added after the release of ``community.postgresql`` 1.0.0.
941
942 Minor Changes
943 -------------
944
945 - postgresql_query - add ``as_single_query`` option to execute a script content as a single query to avoid semicolon related errors (https://github.com/ansible-collections/community.postgresql/pull/37).
946
947 Bugfixes
948 --------
949
950 - postgresql_info - fix crash caused by wrong PgSQL version parsing (https://github.com/ansible-collections/community.postgresql/issues/40).
951 - postgresql_ping - fix crash caused by wrong PgSQL version parsing (https://github.com/ansible-collections/community.postgresql/issues/40).
952 - postgresql_set - return a message instead of traceback when a passed parameter has not been found (https://github.com/ansible-collections/community.postgresql/issues/41).
953
954 v1.0.0
955 ======
956
957 Release Summary
958 ---------------
959
960 This is the first proper release of the ``community.postgresql`` collection which is needed to include the collection in Ansible.
961 This changelog does not contain any changes because there are no changes made since release 0.1.0.
962
963 v0.1.0
964 ======
965
966 Release Summary
967 ---------------
968
969 The ``community.postgresql`` continues the work on the Ansible PostgreSQL
970 modules from their state in ``community.general`` 1.2.0.
971 The changes listed here are thus relative to the modules ``community.general.postgresql_*``.
972
973 Minor Changes
974 -------------
975
976 - postgresql_info - add ``in_recovery`` return value to show if a service in recovery mode or not (https://github.com/ansible-collections/community.general/issues/1068).
977 - postgresql_privs - add ``procedure`` type support (https://github.com/ansible-collections/community.general/issues/1002).
978 - postgresql_query - add ``query_list`` and ``query_all_results`` return values (https://github.com/ansible-collections/community.general/issues/838).
979
980 Bugfixes
981 --------
982
983 - postgresql_ext - fix the module crashes when available ext versions cannot be compared with current version (https://github.com/ansible-collections/community.general/issues/1095).
984 - postgresql_ext - fix version selection when ``version=latest`` (https://github.com/ansible-collections/community.general/pull/1078).
985 - postgresql_privs - fix module fails when ``type`` group and passing ``objs`` value containing hyphens (https://github.com/ansible-collections/community.general/issues/1058).