Re: [GENERAL] COALESCE requires NULL from scalar subquery has a type

2016-02-09 Thread Rowan Collins
x27;re so used to thinking of 'Yes' as representing a text value, when Postgres doesn't see it that way. Perhaps if it was "Select text", and even "Select int<42>" it would be more obvious that "Select " or "Select <42>" required type inference. But that's just dreaming... Regards, -- Rowan Collins [IMSoP]

[GENERAL] Exclusively locking parent tables while disinheriting children.

2015-07-30 Thread Rowan Collins
[1] http://www.postgresql.org/message-id/200806171229.m5HCTfsI091593%40wwwmaster.postgresql.org [2] http://www.postgresql.org/message-id/19666.1213709303%40sss.pgh.pa.us Regards, -- Rowan Collins [IMSoP] -- 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] changing port numbers so pgbouncer can read geoserver and postgres

2013-11-02 Thread Rowan Collins
it can connect properly to the postgres server on port 5432 It sounds like (b) is currently the issue. -- Rowan Collins [IMSoP] -- 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] Unique - first

2013-10-27 Thread Rowan Collins
est_z FROM xyzzy GROUP BY x I find this a lot easier to understand than window functions; I've no idea how its performance compares. -- Rowan Collins [IMSoP] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www

Re: [GENERAL] Bug? Function with side effects not evaluated in CTE

2013-10-21 Thread Rowan Collins
you need" parameter. Personally, I'm definitely in the "this is surprising behaviour" camp, although "surprising" and "wrong" aren't *necessarily* the same thing, so I'll leave it to greater minds to decide on the latter... -- Rowan Collins [IMSoP]

Re: [GENERAL] Bug? Function with side effects not evaluated in CTE

2013-10-16 Thread Rowan Collins
he function for every row in some_huge_table? Or should it run at most 10 times? Which is desired would depend on the situation, but there's no real way to indicate in the syntax. -- Rowan Collins [IMSoP]

Re: [GENERAL] Forms for entering data into postgresql

2013-10-12 Thread Rowan Collins
sically like a set of form controls, a well-thought-out web app can look and feel much the same as a well-thought-out Windows app. I do still think native GUI apps, and maybe even some script-oriented ones, have their place, but with the right toolkit, it's not necessarily cut and dr

Re: [GENERAL] ERROR: invalid value "????" for "YYYY"

2013-10-10 Thread Rowan Collins
that Postgres doesn't know (or care) which where clause is "additional". The only "original" result set is the one with no where clause at all, which contains rows for 'pg_statistics' etc. -- Rowan Collins [IMSoP] -- Sent via pgsql-general mailing list (pgsql-ge

Re: [GENERAL] ERROR: invalid value "????" for "YYYY"

2013-10-08 Thread Rowan Collins
On 08/10/2013 23:03, Rowan Collins wrote: With tables_with_dates As ( select table_name, to_date(right(table_name, 8), 'MMDD') blah from information_schema.tables where table_schema = '' and table_catalog = '' ) Select table_name, blah W

Re: [GENERAL] ERROR: invalid value "????" for "YYYY"

2013-10-08 Thread Rowan Collins
e(right(table_name, 8), 'MMDD') blah from information_schema.tables where table_schema = '' and table_catalog = '' ) Select table_name, blah Where blah > '2013-01-01'::date -- Rowan Collins [IMSoP]

Re: [GENERAL] Howto import regularly some CSV files with variing names?

2013-09-24 Thread Rowan Collins
the database end. If database security is a concern, you could have a login with extremely limitied privileges, and whitelist it explicitly in pg_hba.conf for this purpose. Regards, -- Rowan Collins [IMSoP]

Re: [GENERAL] Howto import regularly some CSV files with variing names?

2013-09-24 Thread Rowan Collins
OPY command. This may or may not matter, depending on setup - for instance, you might trust local Unix sockets, meaning someone would need access to the box first. It's probably best to never have a non-interactive process able to connect with elevated privileges though. -- Rowan Collin

Re: [GENERAL] Query plan for currently executing query?

2013-09-18 Thread Rowan Collins
ilar views) is that the query is waiting on some kind of lock, rather than just executing slowly. Regards, -- Rowan Collins [IMSoP] -- 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] Unary Operators

2013-09-17 Thread Rowan Collins
it should probably either be considered a parser bug, or listed as a restriction on operator creation alongside -- and /* (or both). Regards, -- Rowan Collins [IMSoP] -- 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] Connect postgres to SQLSERVER

2013-09-17 Thread Rowan Collins
, you can just concentrate on the single task you need to work. This will probably seem less good an idea if you need to retrieve data from the stored proc, or if there's a possibility of more complex linkages being needed later anyway. -- Rowan Collins [IMSoP] -- Sent via pgsql-gener

Re: [GENERAL] UPDATE using 3 medium-sized tables causes runaway hash table and fills disk

2013-04-29 Thread Rowan Collins
On 29/04/2013 17:04, Shaun Thomas wrote: > On 04/26/2013 09:39 AM, Rowan Collins wrote: >> If I run "ANALYZE temp_fares_mappings;" - the table which is being >> Updated, and is the outermost in the query plan - the problem goes >> away *even though the Query Plan

[GENERAL] UPDATE using 3 medium-sized tables causes runaway hash table and fills disk

2013-04-26 Thread Rowan Collins
nux-gnu-gcc (Gentoo Hardened 4.5.4 p1.0, pie-0.4.7) 4.5.4, 64-bit" Does anyone have any idea what's going on here, and whether it is in fact a bug? It certainly feels like one... Thanks for your time. -- Rowan Collins S

[GENERAL] UPDATE using 3 medium-sized tables causes runaway hash table and fills disk

2013-04-26 Thread Rowan Collins
nux-gnu-gcc (Gentoo Hardened 4.5.4 p1.0, pie-0.4.7) 4.5.4, 64-bit" Does anyone have any idea what's going on here, and whether it is in fact a bug? It certainly feels like one... Thanks for your time. -- Rowan Collins [IMSoP] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general