Re: [GENERAL] Create Action for psql when NOTIFY Recieved

2017-08-29 Thread Stuart Bishop
ib/pq/listen_example , which is probably less effort than assembling this collection of hacks and trying to make it reliable. Most PostgreSQL APIs have support for notifications. -- Stuart Bishop <stu...@stuartbishop.net> http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Postgres backup solution

2017-03-15 Thread Stuart Bishop
g 'wal-e backup-fetch'. And since you are already using wal-e for log shipping, you get full PITR available. pg_dump for a logical backup is also a possibility, although with 13TB you probably don't want to hold a transaction open that long and are better off with wal-e, barman or other binary b

Re: [GENERAL] Storing files: 2.3TBytes, 17M file count

2016-11-29 Thread Stuart Bishop
ottleneck, then you need to fix it. Probably by knowing which files have changed and only resyncing them,for example using timestamps from the database or storing 'incoming' files in a separate area from your 'archive'. Once you have this sorted you can do your backups every few minutes and reduce your potential data loss. -- Stuart Bishop <stu...@stuartbishop.net> http://www.stuartbishop.net/

Re: [GENERAL] Initdb --data-checksums by default

2016-04-22 Thread Stuart Bishop
t is deemed unacceptable, perhaps the ability to turn them off on an existing database is easily doable (a one way operation). -- Stuart Bishop <stu...@stuartbishop.net> http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] Service not starting on Ubuntu 15.04

2015-10-26 Thread Stuart Bishop
temd and/or the startup scripts. If it doesn't work, the problem is elsewhere (eg. some required path like /var/run or /tmp or /var/log/postgresql doesn't exist or has peculiar permissions). If nothing else, you should get more informative output rather than systemd hiding it away somewhere

Re: [GENERAL] Very high latency, low bandwidth replication

2014-07-02 Thread Stuart Bishop
on site). -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] pgtune and massive shared_buffers recommendation

2014-05-21 Thread Stuart Bishop
and up to 750 connections for the time being) -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Ubuntu Packages / Config Files

2014-05-08 Thread Stuart Bishop
like to use configuration management tools like puppet to deploy something like that, but I suppose that's a topic for another day. Yeah... integration with configuration management is going to be interesting when PG allows you to modify config from the SQL command line... -- Stuart Bishop stu

Re: [GENERAL] Linux vs FreeBSD

2014-04-10 Thread Stuart Bishop
schedulers if you haven't already - IIRC switching to deadline resolved one of our load problems. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] streaming replication timeout error

2013-10-10 Thread Stuart Bishop
, but the WAL file had not yet been shipped and the output logged. I imagine streaming replication happily reconnected soon after. This is all quite normal. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] Incorrect password when restarting a cluster

2013-09-25 Thread Stuart Bishop
with Ubuntu 12.04 (precise) and Ubuntu 13.04 (raring). If you want PostgreSQL 9.2 or 9.3, you are currently best off installing Ubuntu 12.04 (precise) and following the instructions at https://wiki.postgresql.org/wiki/Apt -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net

Re: [GENERAL] hot_standby_feedback

2013-09-16 Thread Stuart Bishop
On Thu, Aug 29, 2013 at 2:44 PM, Tatsuo Ishii is...@postgresql.org wrote: I have a question about hot_standby_feedback parameter. In my understanding, if this parameter is on, a long running transaction on standby will not be canceled even if the transaction conflicts. As you can see vacuum

Re: [GENERAL] Locale Issue

2013-08-22 Thread Stuart Bishop
doing this is probably obvious from your log files. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Better dual WAL shipping/streaming integration?

2013-06-17 Thread Stuart Bishop
did not attempt to pull down WAL files that had already been shipped and were available locally. This would save resources when you need them most - the hot standbys have fallen behind. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list

Re: [GENERAL] PSA: If you are running Precise/12.04 upgrade your kernel.

2013-06-17 Thread Stuart Bishop
. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PostgreSQL binaries under /usr/lib, why?

2013-02-22 Thread Stuart Bishop
version when it isn't, such as when you are connecting to a remote server). You shouldn't need to invoke anything from /usr/lib directly, unless you are doing something particularly low level. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing

[GENERAL] Failing backups, canceling statement due to conflict with recovery

2013-02-13 Thread Stuart Bishop
without the hot standby lagging far behind the master. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Failing backups, canceling statement due to conflict with recovery

2013-02-13 Thread Stuart Bishop
--+- hot_standby | on hot_standby_feedback | on max_standby_archive_delay| 3 max_standby_streaming_delay | 3 wal_receiver_status_interval | 10 -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list

Re: [GENERAL] Failing backups, canceling statement due to conflict with recovery

2013-02-13 Thread Stuart Bishop
On Thu, Feb 14, 2013 at 7:21 AM, Sergey Konoplev gray...@gmail.com wrote: On Wed, Feb 13, 2013 at 12:53 AM, Stuart Bishop stu...@stuartbishop.net wrote: I'm unable to offload my backups to one of my PG 9.1 hot standbys using purely streaming replication. After a few hours, usually

Re: [GENERAL] var/log/postgresql deletion mystery Ubuntu 12.10

2013-02-11 Thread Stuart Bishop
fighting over ownership of this directory. The Debian and Ubuntu packages pipe PostgreSQL's stderr here, and are not configured to use syslog nor PostgreSQL's builtin log rotation. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] Is there a way to add a detail message in a warning with pl/Python?

2013-01-30 Thread Stuart Bishop
/plpy.execute. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] plpython intermittent ImportErrors

2013-01-17 Thread Stuart Bishop
. You might be able to confirm and/or work around the issue by getting your own stanza added to the top of the generated site.py, explicitly importing the problematic modules right at the top before any buildout magic happens. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net

Re: [GENERAL] Linux Distribution Preferences?

2013-01-16 Thread Stuart Bishop
for the initial patch release. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Timeline switch problem with streaming replication with 3 nodes

2012-09-24 Thread Stuart Bishop
believe the problem is being fixed, by letting the history files be shipped along with the WAL files. http://archives.postgresql.org/pgsql-general/2011-12/msg00456.php -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] Race condition between hot_standby_feedback and wal_receiver_status_interval ?

2012-09-12 Thread Stuart Bishop
. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pg_dump on hot standby canceled despite hot_standby_feedback=on

2012-09-07 Thread Stuart Bishop
to conflict with recovery DETAIL: User was holding a relation lock for too long. Can anyone shed some insight? My understanding of hot_standby_feedback is that it should make this sort of query cancellation never happen. On Tue, Aug 14, 2012 at 6:34 PM, Stuart Bishop stu...@stuartbishop.net wrote

[GENERAL] pg_dump on hot standby canceled despite hot_standby_feedback=on

2012-08-14 Thread Stuart Bishop
. I'm successfully using pg_dump on other hot standbys that take half a day to dump with tables active enough that they certainly should have triggered autovacuums. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general

[GENERAL] Streaming replication failover with 3 servers

2012-08-06 Thread Stuart Bishop
, start it up. Does this look correct to people? Am I going to end up in trouble copying files into pg_xlog like this on a busy system? Is it overengineered? eg. will a master ensure everything is streamed to connected hot standbys before a graceful shutdown? -- Stuart Bishop stu

Re: [GENERAL] Calculating Replication Lag - units

2012-06-26 Thread Stuart Bishop
that is not a hot standby if it started in recovery mode). It seems difficult or impossible to calculate this on the master. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] Minimal streaming replication

2012-06-26 Thread Stuart Bishop
statically linked with an old libssl. I haven't had time to investigate so I've disabled SSL for now, even though replication appears to work apart from the disconnections. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] Change request - log line prefix

2012-05-31 Thread Stuart Bishop
(encode the querys into a single line of ascii, lossy is ok). I like my logs both readable and greppable. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Is it possible to call other functions inside plpythonu?

2012-05-04 Thread Stuart Bishop
. There are counter examples too, where the Python code is much cleaner and in some cases lets you do things impossible in plpgSQL. Access to the Python standard library gives you a great toolkit, and it being 'unsafe' you can do stuff you would otherwise need to write and deploy C extensions for. -- Stuart Bishop

Re: [GENERAL] Is it possible to call other functions inside plpythonu?

2012-05-04 Thread Stuart Bishop
On Fri, May 4, 2012 at 4:09 PM, Stuart Bishop stu...@stuartbishop.net wrote: On Fri, Apr 27, 2012 at 4:42 PM, Frank Lanitz fr...@frank.uvena.de wrote: Hi folks, Just looking for a nice server side solution to implement some fundamental logic for an application. plpythonu looks in this tmers

Re: [GENERAL] A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?

2012-03-07 Thread Stuart Bishop
by a REINDEX if you don't have enough disk space to run CLUSTER. And neither of these will do anything if the space is still live because some old transaction might still need to access the old tuples. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing

[GENERAL] Measuring replication lag time

2012-02-22 Thread Stuart Bishop
and the lag time will increase). Is there some way to get this same information on the master? pg_stat_replication contains the log information, but I can't see how to map this to a timestamp. Is there a better way of measuring this? -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net

Re: [GENERAL] Measuring replication lag time

2012-02-22 Thread Stuart Bishop
On Thu, Feb 23, 2012 at 2:58 AM, Greg Williamson gwilliamso...@yahoo.com wrote: Stuart Bishop shaped the aether to ask: Hi. I need to measure how far in the past a hot standby is, async streaming replication. Not sure if this will help, but we are using repmgr https://github.com

Re: [GENERAL] Is Synchronous Postgresql Replication Slower Than Asynchronous?

2012-01-23 Thread Stuart Bishop
pgpool-ii. It sits as a proxy between the client and the databases, and as queries are executed simultaneously, a synchronous replication setup should be just as fast as an unreplicated setup. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing

Re: [GENERAL] Is Synchronous Postgresql Replication Slower Than Asynchronous?

2012-01-23 Thread Stuart Bishop
On Mon, Jan 23, 2012 at 9:37 PM, Simon Riggs si...@2ndquadrant.com wrote: On Mon, Jan 23, 2012 at 2:30 PM, Stuart Bishop stu...@stuartbishop.net wrote: On Sat, Jan 21, 2012 at 3:31 AM, Jerry Richards jerry.richa...@teotech.com wrote: Is synchronous postgresql replication slower than

Re: [GENERAL] Excessive planner time for some queries with high statistics

2011-11-05 Thread Stuart Bishop
On Sat, Nov 5, 2011 at 1:26 AM, Tom Lane t...@sss.pgh.pa.us wrote: Stuart Bishop stu...@stuartbishop.net writes: We also found this problem did not occur on one of our staging systems, which had a default statistics target of 100. Lowering the statistics on the relavant columns from 1000

[GENERAL] Excessive planner time for some queries with high statistics

2011-11-04 Thread Stuart Bishop
getting tools on a suitable server yet. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] max_connections proposal

2011-05-27 Thread Stuart Bishop
webapp which I know can safely go through pgbouncer in transaction pooling mode. Or would there be some way of detecting if the current session has access to stuff that persists across transactions and this feature could be added to the existing connection pools? -- Stuart Bishop stu

Re: [GENERAL] UUID column as pimrary key?

2011-01-06 Thread Stuart Bishop
is going to have to run with hardware and software in this universe with all its limitations. Maybe I should start a business in providing UUID collision insurance? -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] log_statement and syslog severity

2010-03-10 Thread Stuart Bishop
up in contrib or core. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-07 Thread Stuart Bishop
On Wed, Oct 7, 2009 at 3:09 AM, Alvaro Herrera alvhe...@commandprompt.com wrote: Stuart Bishop wrote: I don't think the committed patch touches anything involved in what you're testing, but if you could grab CVS tip from the 8.4 branch (or the snapshot from ftp.postgresql.org:/pub/snapshot

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Stuart Bishop
On Mon, Oct 5, 2009 at 11:00 PM, Alvaro Herrera alvhe...@commandprompt.com wrote: Stuart Bishop wrote: On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys dal...@solfertje.student.utwente.nl wrote: A similar issue was discussed just recently here: http://archives.postgresql.org/pgsql-general

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Stuart Bishop
On Tue, Oct 6, 2009 at 8:28 PM, Alvaro Herrera alvhe...@commandprompt.com wrote: Stuart Bishop wrote: On Mon, Oct 5, 2009 at 11:00 PM, Alvaro Herrera alvhe...@commandprompt.com wrote: Stuart Bishop wrote: On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys dal...@solfertje.student.utwente.nl

[GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Stuart Bishop
will have been recreated a few instants ago using 'createdb --template test_template_db'. One of the statement logs is at http://paste.ubuntu.com/285983/ - I can't see anything unusual going on but it might help diagnose the problem. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Stuart Bishop
On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys dal...@solfertje.student.utwente.nl wrote: On 5 Oct 2009, at 8:58, Stuart Bishop wrote: I'm running our products test suite against PostgreSQL 8.4.1. The test suite runs fine against 8.3.7. With 8.4.1, some of our tests are failing

[GENERAL] Connection pool or load balancer supporting ident authentication

2009-07-15 Thread Stuart Bishop
Hi. Is anyone aware of a connection pool or load balancer for PostgreSQL that supports ident based authentication? Neither pgpool-ii nor pgbouncer support this according to their docs, so I was wondering what else is out there. -- Stuart Bishop stu...@stuartbishop.net http

[GENERAL] Connection pool/load balancer supporting ident authentication?

2009-07-14 Thread Stuart Bishop
Hi. Is anyone aware of a connection pool or load balancer for PostgreSQL that supports ident based authentication? Neither pgpool-ii nor pgbouncer support this according to their docs, so I was wondering what else is out there. -- Stuart Bishop stu...@stuartbishop.net http

Re: [GENERAL] ubuntu packages for 8.4

2009-07-10 Thread Stuart Bishop
postgresql releases always get a new package. This allows you to have multiple major versions installed and running simultaneously. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] [fulltext]Gin index full scan

2009-05-18 Thread Stuart Bishop
. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] pgstattuple triggered checkpoint failure and database outage?

2009-03-30 Thread Stuart Bishop
aware we have no hardware alerts and the box has been running smoothly for quite some time. -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org

Re: [GENERAL] Accent insensitive search?

2009-03-30 Thread Stuart Bishop
- th. s = u'ァ' print unicodedata.name(s) KATAKANA LETTER SMALL A -- Stuart Bishop stu...@stuartbishop.net http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pgstattuple triggered checkpoint failure and database outage?

2009-03-30 Thread Stuart Bishop
On Tue, Mar 31, 2009 at 8:59 AM, Tom Lane t...@sss.pgh.pa.us wrote: Stuart Bishop stu...@stuartbishop.net writes: I just had a brief outage on a production server running 8.3.6, which I suspect was triggered by me running a table bloat report making lots of pgstattuple calls. The first I got

Re: [GENERAL] pgstattuple triggered checkpoint failure and database outage?

2009-03-30 Thread Stuart Bishop
On Tue, Mar 31, 2009 at 11:10 AM, Tom Lane t...@sss.pgh.pa.us wrote: Stuart Bishop stu...@stuartbishop.net writes: On Tue, Mar 31, 2009 at 8:59 AM, Tom Lane t...@sss.pgh.pa.us wrote: What's the actual size of that relation now?  Is it growing rapidly? (I'm trying to figure out whether those

Re: [GENERAL] postgreSQL amazon ec2 cloud

2009-03-17 Thread Stuart Bishop
On Tue, Mar 3, 2009 at 11:53 AM, Sanjay Arora sanjay.k.ar...@gmail.com wrote: Is it possible to host postgreSQL on Amazon's cloud? What are the issues involved? Runs just fine under Ubuntu. We haven't tried it under serious load though. -- Stuart Bishop stu...@stuartbishop.net http

Re: [Slony1-general] Re: [GENERAL] Stripping out slony after / before / during pg_restore?

2008-10-13 Thread Stuart Bishop
, the alternative is 'DROP _sl CASCADE;', which doesn't do a full cleanup. Is there no supported disaster recovery procedure? -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [Slony1-general] Re: [GENERAL] Stripping out slony after / before / during pg_restore?

2008-10-13 Thread Stuart Bishop
On Mon, Oct 13, 2008 at 5:05 PM, Stuart Bishop [EMAIL PROTECTED] wrote: So what was the final recommended process for building a stand alone database from a pg_dump of a replicated node? So if I'm reading this thread correctly, the alternative is 'DROP _sl CASCADE;', which doesn't do a full

Re: [GENERAL] plpythonu

2008-01-18 Thread Stuart Bishop
. plpythonu is unrestricted, so if you have the ability to create plpythonu= stored procedures you effectively have full filesystem access on your database server as the user your database is running as. So don't put open('/etc/passwd','w') in your plpythonu code. --=20 Stuart Bishop [EMAIL PROTECTED

Re: [GENERAL] Need help requiring uniqueness in text columns

2008-01-01 Thread Stuart Bishop
messages in the system only a millisecond apart. -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] plpython array support

2007-11-23 Thread Stuart Bishop
, no there is not. Beyond the simple number and string times everything gets cast to a string (arrays, tsvectors, etc.). I have no idea if anyone is working on this for 8.3 or later. -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital

Re: [GENERAL] tsearch2 best practices

2007-11-23 Thread Stuart Bishop
! I can't wait to be able to upgrade and wish I had time to do the preliminary migration right now.). -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] Compressed Backup too big

2007-11-23 Thread Stuart Bishop
or not.) -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

[GENERAL] Regression - Query requires full scan, GIN doesn't support it

2007-06-18 Thread Stuart Bishop
or failing depending on the existence of an index seems rather wrong to me.) Only relevant discussion on this I can find is http://archives.postgresql.org/pgsql-hackers/2007-01/msg01581.php. There appear to be no replies visible though :-( -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net

Re: [GENERAL] Best high availability solution ?

2006-05-31 Thread Stuart Bishop
creating more things that could go wrong. -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] Install issue on Kubuntu

2006-04-27 Thread Stuart Bishop
/+source/postgresql-8.1/+bugs might be more appropriate. -- Stuart Bishop [EMAIL PROTECTED] http://www.canonical.com/ Canonical Ltd.http://www.ubuntu.com/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] Autovacuum Daemon Disrupting dropdb?

2006-03-12 Thread Stuart Bishop
similar issues I need to deal with on our staging server, which each day automatically needs to have the database reset with a fresh dump of our production database, code updates rolled out and schema and data migration patches applied. -- Stuart Bishop [EMAIL PROTECTED] http

Re: [GENERAL] PostgreSQL's bug tracker

2005-10-13 Thread Stuart Bishop
as the primary contact which is how I imagine Postgres developers would like things set up. Current email interface documentation for Malone is on our wiki at https://wiki.launchpad.canonical.com/MaloneEmailInterfaceUserDoc We use it internally the way you describe. -- Stuart Bishop [EMAIL

Re: [GENERAL] Japanese words not distinguished

2005-07-13 Thread Stuart Bishop
because it is simply comparing the ASCII codes. -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] PL/pgGRESQL, SHA, BYTEA - Creating SHA1 hash for Bytea

2005-07-12 Thread Stuart Bishop
) RETURNS char(40) AS ' import sha return sha.new(args[0]).hexdigest() ' LANGUAGE plpythonu IMMUTABLE RETURNS NULL ON NULL INPUT; -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ signature.asc Description: OpenPGP digital signature

Re: [GENERAL] unique index with bool

2005-05-24 Thread Stuart Bishop
,(param2 = 'true')); but it's not working. CREATE UNIQUE INDEX foo ON table(param1, (NULLIF(param2, false))) - -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCk/6KAfqZj7rGN0oRAvZ

Re: [GENERAL] Multiline plpython procedure

2005-01-20 Thread Stuart Bishop
to be to transform line endings in the string to the one-true-format expected by Python's guts: http://mail.python.org/pipermail/python-dev/2005-January/051214.html -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ ---(end of broadcast

Re: [GENERAL] Best Linux Distribution

2005-01-20 Thread Stuart Bishop
need Java on the boxes running PostgreSQL, that will probably be the decisive factor - Java licencing makes it difficult for free distributions to provide easy installation and support. -- Stuart Bishop [EMAIL PROTECTED] http://www.canonical.com/ Canonical Ltd. http

Re: [GENERAL] Multiline plpython procedure

2005-01-19 Thread Stuart Bishop
Martijn van Oosterhout wrote: On Wed, Jan 19, 2005 at 06:28:25PM +1100, Stuart Bishop wrote: Michael Fuhr wrote: If Python's behavior is intentional then the newline burden would seem to be on the user or on plpythonu. I think Tom's point is that that's just silly Changing this behavior

Re: [GENERAL] Multiline plpython procedure

2005-01-18 Thread Stuart Bishop
be a 2.3.6. If it was championed and it decided that the above example is a bug and not a feature and a patch produced, it could get into 2.4.1 due April and 2.5+ I suspect this means fixing this problem in plpythonu for 8.1. -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net

Re: [GENERAL] Postgresql 8.0 and Cancel/Kill backend functions

2005-01-16 Thread Stuart Bishop
to it, wouldn't it? -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] PostgreSQL 8.0.0 Release Candidate 4

2005-01-15 Thread Stuart Bishop
Tom Lane wrote: Stuart Bishop [EMAIL PROTECTED] writes: Marc G. Fournier wrote: | A current list of *known* supported platforms can be found at: | http://developer.postgresql.org/supported-platforms.html I notice that Ubuntu is not yet on this list. I can confirm that PostgreSQL 7.4.5

Re: [GENERAL] PostgreSQL 8.0.0 Release Candidate 3

2005-01-09 Thread Stuart Bishop
(hoary) on all platforms. Version freeze for hoary is today, so that version is fixed and the 8 series won't be officially supported until the following release (October 2005), although installing the Debian packages should work just fine. - -- Stuart Bishop [EMAIL PROTECTED] http

Re: [GENERAL] Comment on timezone and interval types

2004-11-05 Thread Stuart Bishop
. People are used to months being ambiguous so it is less likely to cause upsets, although it still bites people because their toolkits definition of 'month' does not match their business rules of 'month' (which might be 30 days, 31 days, 4 weeks, calendar month rounded down). - -- Stuart Bishop

Re: [GENERAL] Comment on timezone and interval types

2004-10-29 Thread Stuart Bishop
then have the issue that '2am April 3rd + 1 day == 3am Aril 3rd + 1 day'. - -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBge+sAfqZj7rGN0oRAgInAJsEuYkxX6/jsaszquhjEX/PH3nXvACfVBW9 Z3sfU5XGgxSOI77vuOOOzKA= =euY6

Re: [GENERAL] plpython question

2004-10-19 Thread Stuart Bishop
' language plpythonu; Works just fine here on 7.4.5 - -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBdfmqAfqZj7rGN0oRAiipAJ9X3IoxinVNx/JRwF9OlzSsZMAATQCgh636 b4kuADMg75BBHqaDjV55c+4= =LMiW -END PGP SIGNATURE

Re: [GENERAL] plpython question

2004-10-19 Thread Stuart Bishop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stuart Bishop wrote: | create or replace function BatchBalanceStatus(int, int, int) returns | varchar as ' | ~balance, needed, freestock = args | ~if balance 0: | ~return Unhandled | ~elif freestock = needed: | ~return OK

Re: [GENERAL] 'NOW' in UTC with no timezone

2004-10-14 Thread Stuart Bishop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Lane wrote: | Stuart Bishop [EMAIL PROTECTED] writes: | |I'm trying to determine the best way of saying 'The current time in UTC |with no time zone information'. | | | Isn't that a contradiction in terms? Not at all - I want 'now' in UTC time

Re: [GENERAL] 'NOW' in UTC with no timezone

2004-10-14 Thread Stuart Bishop
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Lane wrote: | Stuart Bishop [EMAIL PROTECTED] writes: | |How much overhead is there in storing a timestamp with timezone as |opposed to one without? | | | Exactly zero. You have a misconception about what the datatype really | does --- see other

[GENERAL] 'NOW' in UTC with no timezone

2004-10-11 Thread Stuart Bishop
. However, PostgreSQL parses this into the much more confusing timezone('UTC'::text, ('now'::text)::timestamp(6) with time zone) which is what is appearing on my generated documentation. Is there any magic string like 'NOW'::timestamp or CURRENT_TIMESTAMP which returns UTC time? - -- Stuart Bishop