Mon Jul 11 23:00:32 PDT 2005
- Previous message: [Slony1-commit] By dpage: Prevents the use of pg_config when figuring out the PostgreSQL
- Next message: [Slony1-commit] By devrim: Currently, our prebuilt RPMs were against PostgreSQL 8.0.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Per Tim Goodaire, fixing replication check script which had been
'rounding' dates inappropriately.
Modified Files:
--------------
slony1-engine/tools:
psql_replication_check.pl (r1.2 -> r1.3)
-------------- next part --------------
Index: psql_replication_check.pl
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/tools/psql_replication_check.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -Ltools/psql_replication_check.pl -Ltools/psql_replication_check.pl -u -w -r1.2 -r1.3
--- tools/psql_replication_check.pl
+++ tools/psql_replication_check.pl
@@ -109,7 +109,7 @@
CREATE VIEW replication_status AS
SELECT customer_name AS object_name,
transaction_date,
-date_part('minutes'::text, now() - transaction_date) AS age
+(date_part('epoch'::text, now() - transaction_date) / 60::double precision)::integer AS age
FROM customer_orders
ORDER BY id DESC
LIMIT 1;
- Previous message: [Slony1-commit] By dpage: Prevents the use of pg_config when figuring out the PostgreSQL
- Next message: [Slony1-commit] By devrim: Currently, our prebuilt RPMs were against PostgreSQL 8.0.3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list