Skip to content

Commit 1290d7c

Browse files
committed
v0.4.1 Clarify commit warning messages. See CHANGELOG for more info and the extension update file for how to install
1 parent 2bfcc18 commit 1290d7c

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.4.1
2+
-- Clarify commit warning messages with error codes. Also corrected the warning message for rollbacks (Github Pull Request #15).
3+
4+
15
0.4.0
26
-- Add support for commonly used amqp message properties (delivery_mode, content_type, reply_to and correlation_id) for publish() and autonomous_publish(). Many thanks to netalien for the contribution. (Github PR #13).
37
-- This software is now only supported as a PostgreSQL Extension. PG versions prior to 9.1 and means to install it without the extension system are no longer officially supported. PostgreSQL 9.0 is EOL as of Sept 2015 (http://www.postgresql.org/support/versioning/)

META.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pg_amqp",
33
"abstract": "AMQP protocol support for PostgreSQL",
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"description": "The pg_amqp package provides the ability for postgres statements to directly publish messages to an AMQP broker.",
66
"maintainer":
77
[ "Theo Schlossnagle <[email protected]>", "Keith Fiske <[email protected]" ]
@@ -17,9 +17,9 @@
1717
},
1818
"provides": {
1919
"amqp": {
20-
"file": "sql/amqp--0.4.0.sql",
20+
"file": "sql/amqp--0.4.1.sql",
2121
"docfile": "doc/amqp.md",
22-
"version": "0.4.0",
22+
"version": "0.4.1",
2323
"abstract": "AMQP protocol support for PostgreSQL"
2424
}
2525
},

amqp.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# amqp extension
22
comment = 'AMQP protocol support for PostgreSQL'
3-
default_version = '0.4.0'
3+
default_version = '0.4.1'
44
module_pathname = '$libdir/pg_amqp'
55
relocatable = false
66
schema = amqp

src/pg_amqp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static void amqp_local_phase2(XactEvent event, void *arg) {
105105
if(bs->conn) amqp_tx_commit(bs->conn, 2, AMQP_EMPTY_TABLE);
106106
reply = amqp_get_rpc_reply();
107107
if(reply->reply_type != AMQP_RESPONSE_NORMAL) {
108-
elog(WARNING, "amqp could not commit tx mode on broker %d", bs->broker_id);
108+
elog(WARNING, "amqp could not commit tx mode on broker %d, reply_type=%d, library_errno=%d", bs->broker_id, reply->reply_type, reply->library_errno);
109109
local_amqp_disconnect_bs(bs);
110110
}
111111
bs->uncommitted = 0;
@@ -119,7 +119,7 @@ static void amqp_local_phase2(XactEvent event, void *arg) {
119119
if(bs->conn) amqp_tx_rollback(bs->conn, 2, AMQP_EMPTY_TABLE);
120120
reply = amqp_get_rpc_reply();
121121
if(reply->reply_type != AMQP_RESPONSE_NORMAL) {
122-
elog(WARNING, "amqp could not commit tx mode on broker %d", bs->broker_id);
122+
elog(WARNING, "amqp could not rollback tx mode on broker %d, reply_type=%d, library_errno=%d", bs->broker_id, reply->reply_type, reply->library_errno);
123123
local_amqp_disconnect_bs(bs);
124124
}
125125
bs->uncommitted = 0;

updates/amqp--0.4.0--0.4.1.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- NOTE: No changes to sql extension code contained in this update. Only C code has been patched, so a "make install" must be run to apply the bug fix. You must also still run "ALTER EXTENSION pg_ampq UPDATE' to update the extension version number in the database.
2+
3+
-- Clarify commit/rollback warning messages (Github Pull Request #15)

0 commit comments

Comments
 (0)