Re: [GENERAL] PostgreSQL slow after VACUUM

2004-11-26 Thread Arjen van der Meijden
Hi Nix, The problem is, that while doing the vacuum full ANALYZE the table was empty. It therefore gathered statistics of a situation which isn't there anymore when you fill up the table. In an empty or small table, it is normal to do sequential scans. Which you most of the time don't want in a

Re: [GENERAL] Sorting based on maximum value over several columns

2004-11-07 Thread Arjen van der Meijden
Hi Greg, Although it doesn't really seem to be a very well-structured database design, I think there is a solution. If the amount of fields is low, you can just stick a CASE in the MAX like: SELECT ..., MAX( CASE WHEN value1 > value2 THEN (CASE WHEN value1 > value3 THEN value1 ELSE va

Re: [GENERAL] files ending with .1 or .2

2004-10-20 Thread Arjen van der Meijden
I don't know. I just deduced that from an earlier situation where I new the size of the data, and noticed that the largest table was split up in enough 1GB parts to fit that size ;) Best regards, Arjen On 20-10-2004 10:14, Leonardo Francalanci wrote: When a data file for a specific table (or ind

Re: [GENERAL] files ending with .1 or .2

2004-10-20 Thread Arjen van der Meijden
When a data file for a specific table (or index?) is larger than 1GB, its split up in several parts. This is probably a left over from the time OSs used to have problems with large files. The file name, that number, is the OID of the table afaik. And the postfix is of course the number in the o

Re: [GENERAL] generic insert into table

2004-06-07 Thread Arjen van der Meijden
On 7-6-2004 23:29, Dennis Gearon wrote: please CC me, I am on digest - I have the following code from an application that is 'mysql_centric'. I want to make it generic across all databases, if it's possible, especially postgres :-) mysql version: INSERT INTO ca

Re: [GENERAL] Help with PostgreSQL porting project

2004-01-02 Thread Arjen van der Meijden
Enver ALTIN wrote: Hi, On Fri, 2004-01-02 at 13:38, Chris Travers wrote: A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light, fast database abstraction layer which c

Re: Mnogosearch (Was: Re: [GENERAL] website doc search is ... )

2004-01-01 Thread Arjen van der Meijden
with that host table) instead of the like that is used now? By the way, can a construction like (tablefield || '') ever use an index in postgresql? Best regards and good luck, Arjen van der Meijden ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] website doc search is extremely SLOW

2003-12-31 Thread Arjen van der Meijden
tom built storage system (and you could offload it to another machine, like we did). Btw, if you really need an "in database" solution, read back the postings of Eric Ridge at 26-12-2003 20:54 on the hackers list (he's working on integrating xapian in postgresql as a FTI) Best rega

Re: [GENERAL] LIMIT modifier

2003-12-15 Thread Arjen van der Meijden
Rod, Have a look at the bottom of this page: http://www.postgresql.org/docs/current/static/sql-select.html "Nonstandard Clauses The clauses DISTINCT ON, LIMIT, and OFFSET are not defined in the SQL standard." TOP x isn't in the standard as well, afaik. Best regards, Arjen Roderick A. Anderso

Re: [GENERAL] Making a tree with "millions and millions" of dynamic

2003-12-06 Thread Arjen van der Meijden
nodes... So the claimed advantage of the better performance is a bit limited, you'll either need *very* large integers to store large trees, or you are simply limited in the size of your tree by some relatively small numbers. And that is a bit sad, since bad performance is only a problem/visibl

Re: [GENERAL] Making a tree with "millions and millions" of dynamic nodes

2003-12-04 Thread Arjen van der Meijden
I haven't really tested it, but wanted to point it out to you. Regards, Arjen van der Meijden ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] Postgresql sql query - selecting rows outside a join

2003-12-01 Thread Arjen van der Meijden
> Graham Leggett > > Hi all, > > I am trying to do a query that returns all rows that are > _not_ part of a join, and so far I cannot seem to find a > query that doesn't take 30 minutes or more to run. > > The basic query is "select * from tableA where tableA_id NOT > IN (select tableA_id fro

Re: [GENERAL] [pgsql-advocacy] Documentation quality WAS: interesting

2003-06-24 Thread Arjen van der Meijden
> Jan Wieck wrote: > If you work on Unix systems remotely on a regular base, you > should have > a Unix system as a workstation too. That way you can use ssh(1) to > forward your X11 connections through a secure channel. > > A "second" PC can be implemented as a memory+disk upgrade > together

Re: [GENERAL] JDBC Type 4 Driver Jar File.

2003-06-21 Thread Arjen van der Meijden
According to Sun, http://jcp.org/en/jsr/detail?id=221, it is not yet available: "2.11 Please describe the anticipated schedule for the development of this specification. This specification will be available towards the end of the calendar year, 2004. " So I wonder why you expect a Postgresql JDBC