Skip to content

Commit

Permalink
Timestamp v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nasbyj committed Nov 25, 2019
1 parent b5844d2 commit a83e2cc
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 65 deletions.
22 changes: 18 additions & 4 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
Revision history for pgTAP
==========================

1.1.0
1.1.0 2019-11-25T19:05:38Z
--------------------------
* Remove support for PostgreSQL older than 9.1. Note that some automated tests
don't run on versions older than 9.4, so it's recommended you run PostgreSQL
9.4 at minimum.
* Add a `throw_excepton` argument to `finish()`. `finish(true)` will raise an
exception if any tests failed. Thanks to Stephen Paul Weber for the idea
(#80), and Rodolphe Quiédeville for most of the work (#104)!
* Make description optional for col_not_null() (#221).
* Fix syntax of test_user function example in the docs (#208). Thanks to
PeteDevoy for the patch!
* Fix issue with pgtap-core referencing pg_proc.proisagg on PostgreSQL 11+ (#197)
* Add PostgreSQL 12.0 to automated tests (#223).
* Fix pgtap_version(), which incorrectly returned 0.99 when upgrading from
version 0.99.0 to 1.0.0.
* Fix issue with using pg_upgrade to Postgres 11+ with pgTap installed.
* Make description optional for col_not_null().
version 0.99.0 to 1.0.0 (#214).
* Fix issue with using pg_upgrade to PostgreSQL 11+ with pgTap installed (#201,
#215).
* Start using `DEFAULT` in functions. Previously
* Add automated testing of extension upgrade scripts (#128), as well as testing
of pg_upgrade with pgTap installed (#218, #222).

1.0.0 2019-02-21T22:39:42Z
--------------------------
Expand Down
4 changes: 4 additions & 0 deletions contrib/pgtap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ make install USE_PGXS=1 DESTDIR=%{buildroot}
%{_docdir}/pgsql/contrib/README.pgtap

%changelog
* Mon Nov 25 2019 Jim Nasby <[email protected]> 1.1.0
- Update to 1.1.0
- Remove support for PostgreSQL prior to 9.1

* Thu Feb 21 2019 Jim Nasby <[email protected]> 1.0.0
- Update to 1.0.0

Expand Down
55 changes: 6 additions & 49 deletions doc/pgtap.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -8273,14 +8273,9 @@ Compatibility
=============

Here are some notes on how pgTAP is built for particular versions of
PostgreSQL. This helps you to understand any side-effects. If you'd rather not
have these changes in your schema, build `pgTAP` with a schema just for it,
instead:

make TAPSCHEMA=tap

To see the specifics for each version of PostgreSQL, consult the files in the
`compat/` directory in the pgTAP distribution.
PostgreSQL. This helps you to understand any side-effects. To see the specifics
for each version of PostgreSQL, consult the files in the `compat/` directory in
the pgTAP distribution.

10 and Up
---------
Expand All @@ -8299,59 +8294,21 @@ No changes. Everything should just work.

9.2 and Down
------------
* Lacks full automated testing. Recommend using 9.4 or higher.
* Diagnostic output from `lives_ok()` and xUnit function exceptions will not
include schema, table, column, data type, or constraint information, since
such diagnostics were not introduced until 9.3.

9.1 and Down
------------
* Lacks full automated testing. Recommend using 9.4 or higher.
* Diagnostic output from `lives_ok()` and xUnit function exceptions will not
error context or details, since such diagnostics were not introduced until
9.2.

9.0 and Down
------------
* The `foreign_table_owner_is()` function will not work, because, of course,
there were no foreign tables until 9.1.
* The `extensions_are()` functions are not available, because extensions were
not introduced until 9.1.

8.4 and Down
------------
* The `sequence_privs_are()` function does not work, because privileges could
not be granted on sequences before 9.0.

* The `triggers_are()` function does not ignore internally-created triggers.

8.3 and Down
------------
* A patch is applied to modify `results_eq()` and `row_eq()` to cast records
to text before comparing them. This means that things will mainly be
correct, but it also means that two queries with incompatible types that
convert to the same text string may be considered incorrectly equivalent.

* A C function, `pg_typeof()`, is built and installed in a DSO. This is for
compatibility with the same function that ships in 8.4 core, and is required
for `cmp_ok()` and `isa_ok()` to work.

* The variadic forms of `diag()` and `collect_tap()` are not available.
You can pass an array of TAP to `collect_tap()`, however.

* These permission-testing functions don't work, because one cannot grant
permissions on the relevant objects until 8.4:

+ `has_any_column_privilege()`
+ `has_column_privilege()`
+ `has_foreign_data_wrapper_privilege()`
+ `has_server_privilege()`

* These inheritance-testing functions are not available, because internally
the use a recursive common table expression query not supported before 8.4:

+ `is_ancestor_of()`
+ `isnt_ancestor_of()`
+ `is_descendent_of()`
+ `isnt_descendent_of()`
No longer supported.

Metadata
========
Expand Down
25 changes: 13 additions & 12 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,23 @@ Here are the steps to take to make a release of pgTAP:
of the document.

* Add an item to the top of the `%changelog` section of `contrib/pgtap.spec`.
It should use the version you're about to release, as well as the date and
your name and email address. Add at least one bullet mentioning the
upgrade.
It should use the version you're about to release, as well as the date (use
`date +'%a %b %d %Y'`) and your name and email address. Add at least one
bullet mentioning the upgrade.

* Run `make html` (you'll need
[MultiMarkdown](http://fletcherpenney.net/multimarkdown/) in your path and
the [Pod::Simple::XHTML](https://metacpan.org/module/Pod::Simple::XHTML)
Perl module installed), then checkout the `gh-pages` branch and make these
changes:
[MultiMarkdown](http://fletcherpenney.net/multimarkdown/) (Macports: port
install multimarkdown) in your path and the
[Pod::Simple::XHTML](https://metacpan.org/module/Pod::Simple::XHTML)
(Macports: port install p5-pod-simple) Perl module installed), then
checkout the `gh-pages` branch and make these changes:

+ Open `documentation.html` and delete all the lines between these "DOC"
comments, until the main div looks like this:
+ `cp .documentation.html.template documentation.html`. Edit
documentation.html, the main div should look like this:

<div id="main">
<!-- DOC INTRO HERE -->
<!-- END DOC INTRO HERE -->
<!-- DOCS INTRO HERE -->
<!-- END DOCS INTRO HERE -->
<div id="toc">
<!-- TOC SANS "pgTAP x.xx" -->
<!-- END TOC -->
Expand All @@ -61,7 +62,7 @@ Here are the steps to take to make a release of pgTAP:
</div>

+ Copy the first `<h1>` and `<p>` from `doc/pgtap.html` into the
`DOC INTRO HERE` section.
`DOCS INTRO HERE` section.

+ Copy the rest of `doc/pgtap.html` into the
`DOCS HERE, WITH INTRO MOVED ABOVE` section.
Expand Down

0 comments on commit a83e2cc

Please sign in to comment.