Re: [GENERAL] median for postgresql 8.3

2010-11-16 Thread maarten
uggest, or upgrade to 9.x, for which I've found simple examples due to dynamic limit and offset. thanks and regards, Maarten On Wed, 2010-11-17 at 09:53 +1300, Brent Wood wrote: > Hi Maarten, > > The best way I know of to do this is not to do statistical queries > "in"

[GENERAL] median for postgresql 8.3

2010-11-16 Thread maarten
le directly. Furthermore, I need the median for a timestamp column, which would probably complicate things more than when it is a number column. I'd like to be able to do this using only the database. (So no programming functions, special addons etc...) Any ideas anyone? regards, Maarte

Re: [GENERAL] Counting boolean values (how many true, how many false)

2010-11-16 Thread maarten
Hi, sum doesn't like booleans, but it does like integers so: sum(boolval::int) solves that problem for you. SELECT id,sum(good::int + fair::int + nice::int) would get you a total of the three for each row good luck, Maarten On Tue, 2010-11-16 at 17:23 +0100, Alexander Farber wrote: &g

Re: [GENERAL] PostGIS return multiple points

2010-10-28 Thread maarten
hould give you a list of all polynames. The trick is figuring out what polyname goes with which point. But I leave that as an exercise to the reader, as it's tea time. regards, Maarten On Thu, 2010-10-28 at 01:00 -0700, trevor1940 wrote: > Hi > > I have a PostGIS table and I wish

Re: [GENERAL] integer to little endian conversion

2010-06-16 Thread maarten
plpgsql' VOLATILE COST 100; regards, Maarten On Tue, 2010-06-15 at 17:54 +0200, maarten wrote: > Hi all, > > I've been looking for a while now to solve my problem. > I'd like to store an integer (and other things) in a bytea field of a > table from a trigger functi

[GENERAL] integer to little endian conversion

2010-06-15 Thread maarten
, I realize I'll need something along the lines of IF v_temp = 0 -> E'\\000' ELSIF v_temp < 128 -> chr(v_temp) ELSE ... It's the ... I'm looking for. (or some function that can replace that entire IF block, or even better, the entire functi

Re: [GENERAL] escaping and quoting

2008-05-21 Thread Maarten Deprez
;) > Are there any other strings with backslashes in your statements? Don't know, probably yes. The backslashes are probably generated by the escape function. Greetings, Maarten Deprez -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscri

Re: [GENERAL] escaping and quoting

2008-05-20 Thread Maarten Deprez
ings to on? Laurenz Albe wrote: > Depends. Okay, what do you need to know? It can be any string, a part of an email message. Should strings escaped by EscapeBytea be included in "''", or "E''" in the SQL command, to avoid the warning? Greetings, Maarten

[GENERAL] escaping and quoting

2008-05-20 Thread Maarten Deprez
? Greetings, Maarten Deprez -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] escaping and quoting

2008-05-16 Thread Maarten Deprez
Hello. My dbmail server using postgresql produces a lot of warnings about '\\' in strings. The particular string it is complaining about is escaped by EscapeBytea, and included in single quotes (not E''). Is it all right to set standard_compliant_strings to on? Greet

Re: [GENERAL] WINDOWS INSTALLATION TIPS

2008-02-13 Thread Maarten Boekhold
se "change user /install" inside a terminal session to make this work? Open a CMD prompt, and type "change user /install"... http://support.microsoft.com/kb/320185 Maarten ---(end of broadcast)--- TIP 9: In versions belo

Re: [GENERAL] Reinstall problem of PostgreSQL in Windows XP

2006-09-10 Thread maarten
PostgreSQL creates an Administrator user you can only get rid of by booting XP in "sans echec mode", or whatever this is called in your language. You otherwise won't be able to see this user. You will also most likely need some register cleaning tools to get rid of it completely and or change

[GENERAL] out of memory using Postgres with Spring/Hibernate/Java

2006-03-14 Thread maarten roosendaal
closing of the resultset. Here's part of the DAO method: Query q = getSession(false).createQuery(query); q.setMaxResults(RESULT_SIZE); List list = q.list(); No rocketscience but somehow this causes a problem on the DB Server. Does anyone have an idea where to look? Thanks, Maarten ps: Java

[Fwd: Re: [GENERAL] CGI program cannot access database]

2004-10-07 Thread Maarten Boekhold
Original Message Subject: Re: [GENERAL] CGI program cannot access database Date: Fri, 08 Oct 2004 10:34:12 +0400 From: Maarten Boekhold <[EMAIL PROTECTED]> To: Samik Raychaudhuri <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Samik Raychaudhuri wrote: Hel

Re: [GENERAL] [HACKERS] CREATE DATABASE on the heap with PostgreSQL?

2004-06-07 Thread Maarten Boekhold
artup. Perhaps it's possible to first start postmaster in single user mode to clean up the system catalogs? Maarten ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] Re: a "huge" table with small rows and culumns

2000-12-20 Thread Maarten Boekhold
Hi, AFAIK when an entity EJB is instantiated it will be read from the DB. Similarly, when it is destroyed, it will be serialized to the DB again. Thus an update, which causes your table to grow. Maarten Maarten Boekhold, [EMAIL PROTECTED] Reuters Consulting Entrada 308 1096 ED

RE: [GENERAL] Postgres failover implementation

2000-12-14 Thread Maarten Boekhold
econdary if the primary dies should be possible. You'd also want some way of switching the IP-address of the machines so that the whole fail-over is transparent to clients. Maarten On 13/12/2000 17:30:31 Schmidt, Peter wrote: >-Original Message- >From: Tom Lane [mailto:[EMAIL

Re: [GENERAL] memory

1999-12-01 Thread Maarten Boekhold
bably another 74 megs to be allocated somewhere in memory(?) and finally it gets to psql which needs to get yet another 74 megs. Does this make any sense to the experts? Maarten -- Maarten Boekhold, [EMAIL PROTECTED] TIBCO Finance Technology Inc. "Sevilla" Building Entrada 308 1096

Re: [GENERAL] advice on buying sun hardware to run postgres

1999-04-27 Thread Maarten Boekhold
be touching that disk, there's only linux partitions on it). Maarten -- Maarten Boekhold, [EMAIL PROTECTED] TIBCO Finance Technology Inc. The Atrium Strawinskylaan 3051 1077 ZX Amsterdam, The Netherlands tel: +31 20 3012158, fax: +31 20 3012358 http://www.tibco.com

Re: [GENERAL] Performance

1999-03-31 Thread Maarten Boekhold
> 1) All Celerons ship with a 128K on chip cache. Which means the cache runs > at the same clock rate as the chip. > 2) The PIIs ship with 512K cache, however it's level 2 so it only runs at bus > speed. No, it runs at half the core speed. Maarten ps. do you also find it

[GENERAL] lower(varchar)

1998-08-13 Thread Maarten Boekhold
: create index product_artit_idx2 on product (lower(artit::text) text_ops); ERROR: parser: parse error at or near "::" How can I do this? Isn't there a simple fix to some system table that tells postgres that using lowe

Re: [GENERAL] User authentication blues

1998-07-30 Thread Maarten Boekhold
On Thu, 30 Jul 1998, Maarten Boekhold wrote: > Hi, > > I have a 6.3.2 server, and I want to use password authentication. > So, I gave the user 'postgres' and some other user a password, and I put this > in my pg_hba.conf: > > host all 127.0.0.1

[GENERAL] User authentication blues

1998-07-30 Thread Maarten Boekhold
'postgres' as username while supplying a fake password. Am I doing something wrong here? Maarten _ | TU Delft, The Netherlands, Faculty of Information Technology and Systems | |

Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]

1998-07-22 Thread Maarten Boekhold
.primus.baynet.de/mgeisler/kpgsql > - KDE frontend Maarten _ | TU Delft, The Netherlands, Faculty of Information Technology and Systems | | Department of Electrical Engineering

Re: [GENERAL] Moving Databases

1998-07-10 Thread Maarten Boekhold
user). Maybe you gave to create the database first on machine b. At least, I think this should work And no need to stop any postmasters.. Maarten _ | TU Delft, The Netherlands, Faculty of Inf

[GENERAL] WWW: user gallery

1998-06-19 Thread Maarten Boekhold
:( I must say that I think that the link on the 'submit' page is very confusing. Maarten _ | TU Delft, The Netherlands, Faculty of Information Technology and Systems | | Department of

[GENERAL] Strange stuff with fetch

1998-06-17 Thread Maarten Boekhold
27;t even test for this special case (PGRES_EMPTY_QUERY) and then continue, cos it's considered an error, and all queries are ignored till the end of the transaction. Anybody knows what's going on here? Maarten