Re: [GENERAL] postgresql in FreeBSD jails: proposal

2008-01-16 Thread Marc G. Fournier
[EMAIL PROTECTED] (Mischa Sandberg) writes: >Unfortunately, with multiple jails running PG servers and (due to app >limitations) all servers having same PGPORT, you get the situation that >when jail#2 (,jail#3,...) server comes up, it: >- detects that there is a shm seg with ipc key 5432001 >- che

Re: [GENERAL] template0(or template1) is a database?

2008-01-16 Thread Chris
ivan.hou wrote: as the tile, it's a database? or what is it? http://www.postgresql.org/docs/8.2/static/manage-ag-templatedbs.html -- Postgresql & php tutorials http://www.designmagick.com/ ---(end of broadcast)--- TIP 3: Have you checked our ext

[GENERAL] template0(or template1) is a database?

2008-01-16 Thread ivan.hou
as the tile, it's a database? or what is it? can i use "select" command to query the data of template0? how should i explain the template0? -- View this message in context: http://www.nabble.com/template0%28or-template1%29-is--a-database--tp14906094p14906094.html Sent from the PostgreSQL - ge

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Josh Harrison
On Jan 16, 2008 1:31 PM, Dawid Kuroczko <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 7:14 PM, Scott Marlowe <[EMAIL PROTECTED]> wrote: > > > > On Jan 11, 2008 12:02 PM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > > Hi > > > We have an Oracle production database with some terbytes of data. We > w

Re: [GENERAL] Prepared statement's plan

2008-01-16 Thread Chris
Vyacheslav Kalinin wrote: Hello, I would appreciate if someone explained me how exactly prepared parametrized statements are planned http://www.postgresql.org/docs/8.2/static/sql-prepare.html Under the "Notes" it explains it can't use an index and has to basically guess what it's going to d

Re: [GENERAL] A counter argument about DISTINCT and GROUP BY in PostgreSQL

2008-01-16 Thread Gregory Stark
<[EMAIL PROTECTED]> writes: > On Jan 4, 11:48 am, [EMAIL PROTECTED] (Gregory Stark) wrote: > >> And what does the plan look like? > > It looks great in mysql! Like what? -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication sup

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Peter Eisentraut
Otto Hirr wrote: > Postgres needs to have an "official spokesman" make a request at a "very > important top official" that is responsible for the acquisition. Postgres doesn't need to do anything, because the matter at hand does not concern Postgres, and I think we shouldn't spend our energy maki

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Erik Jones
On Jan 16, 2008, at 4:02 PM, Otto Hirr wrote: Postgres needs to have an "official spokesman" make a request at a "very important top official" that is responsible for the acquisition. ..Otto Given that Josh Berkus works for Sun, I'd say we already have that. Erik Jones DBA | Emma® [EMA

Re: [GENERAL] Help with pre-loaded arbitrary key sequences

2008-01-16 Thread Scott Marlowe
On Jan 11, 2008 10:43 AM, James B. Byrne <[EMAIL PROTECTED]> wrote: > I am prototyping a system migration that is to employ Ruby, Rails and > PostgreSQL. Rails has the convention that the primary key of a row is an > arbitrary integer value assigned by the database manager through a > sequence. A

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Raymond O'Donnell
On 16/01/2008 23:10, Ted Byers wrote: Does it count if I lived there for a year many many years ago? ;-) ...or if I visited for a day or two in 1986? ;-) Ray. --- Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland [EMA

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Ted Byers
--- Bill Moran <[EMAIL PROTECTED]> wrote: > In response to dvanatta <[EMAIL PROTECTED]>: > > > > > What's up with 3 of the 7 being from Pennsylvania? > What's the connection? > > Well, as everyone knows, Pennsylvania is a haven for > brilliant > people. In fact, simply living in Pennsylvania

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Matthew T. O'Connor
Joshua D. Drake wrote: dvanatta <[EMAIL PROTECTED]> wrote: What's up with 3 of the 7 being from Pennsylvania? What's the connection? Its the closest the cult of the elephant will get to jersey. Whoa now, them's fightin' words. Come on over and you me, Tony, Paulie and Silvio will have a l

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Otto Hirr
> From: Geoffrey Gowey > Sounds reasonable, but what one manager answers today is subject to be > changed by another tomorrow. The intent is to get out in the open their "official" statement. That in turn may create a discussion inside Sun that may not have taken place. If postgres community doe

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Geoffrey Gowey
Sounds reasonable, but what one manager answers today is subject to be changed by another tomorrow. On 1/16/08, Otto Hirr <[EMAIL PROTECTED]> wrote: > > Russ Brown wrote: > > > http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ > > > > > > What does this mean for Sun's support of Postgres? > >

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Otto Hirr
> Russ Brown wrote: > > http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ > > > > What does this mean for Sun's support of Postgres? > > So why not go directly to the "source", Sun itself, and ask them? Someone like Bruce should just knock on the door and ask. Then you can evaluate the answer.

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Geoffrey Gowey
And this is why I live in pa, but make the trek in to the netherworld known as new jersey. :D On 1/16/08, Bill Moran <[EMAIL PROTECTED]> wrote: > In response to dvanatta <[EMAIL PROTECTED]>: > > > > > What's up with 3 of the 7 being from Pennsylvania? What's the connection? > > Well, as every

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 16 Jan 2008 16:29:01 -0500 Bill Moran <[EMAIL PROTECTED]> wrote: > In response to dvanatta <[EMAIL PROTECTED]>: > > > > > What's up with 3 of the 7 being from Pennsylvania? What's the > > connection? > > Well, as everyone knows, Pennsylvan

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Bill Moran
In response to dvanatta <[EMAIL PROTECTED]>: > > What's up with 3 of the 7 being from Pennsylvania? What's the connection? Well, as everyone knows, Pennsylvania is a haven for brilliant people. In fact, simply living in Pennsylvania makes you smarter. -- Bill Moran http://www.potentialtech.c

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 16 Jan 2008 13:23:35 -0800 (PST) dvanatta <[EMAIL PROTECTED]> wrote: > > What's up with 3 of the 7 being from Pennsylvania? What's the > connection? Its the closest the cult of the elephant will get to jersey. Joshua D. Drake - -- The

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread dvanatta
What's up with 3 of the 7 being from Pennsylvania? What's the connection? Dave Page-3 wrote: > > 2 out of 7 - which would be Bruce & I. > > ---(end of broadcast)--- > TIP 1: if posting/reading through Usenet, please send an appropriate >

Re: [GENERAL] PL/pgsql function handle CUBE values

2008-01-16 Thread Rajarshi Guha
On Jan 16, 2008, at 3:41 PM, Colin Wetherbee wrote: Rajarshi Guha wrote: Hi, I am trying to write a PL/pgsql function that will take a CUBE variable (which will be a 1D point) and a double precision variable. If the input CUBE is defined as '(x,y,z)'::cube the function would then return a CU

Re: [GENERAL] PL/pgsql function handle CUBE values

2008-01-16 Thread Colin Wetherbee
Rajarshi Guha wrote: Hi, I am trying to write a PL/pgsql function that will take a CUBE variable (which will be a 1D point) and a double precision variable. If the input CUBE is defined as '(x,y,z)'::cube the function would then return a CUBE value of the form '(x+R,y+R,z+R),(x-R,y-R,z-R)'::

[GENERAL] PL/pgsql function handle CUBE values

2008-01-16 Thread Rajarshi Guha
Hi, I am trying to write a PL/pgsql function that will take a CUBE variable (which will be a 1D point) and a double precision variable. If the input CUBE is defined as '(x,y,z)'::cube the function would then return a CUBE value of the form '(x+R,y+R,z+R),(x-R,y-R,z-R)'::cube where R is the

[GENERAL] SVN event hooks for PL/PGSQL functions and DDL?

2008-01-16 Thread Webb Sprague
In another thread, someone mentioned writing hooks for Subversion that would grab function definitions and DDL statements from the current database and push them into the repository? Does anyone have a few scripts/ cookbook examples for this? Is there a cookbook section on the postgres wiki wher

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Josh Harrison
On Jan 16, 2008 1:43 PM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > > On Jan 16, 2008 10:11 AM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > > > > > > On Jan 15, 2008 3:58 PM, David Fetter <[EMAIL PROTECTED]> wrote: > > > > > On Mon, Jan 14, 2008 at 11:42:50AM -0500, Josh Harrison wrote: > > > >

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Josh Harrison
On Jan 16, 2008 10:11 AM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > > On Jan 15, 2008 3:58 PM, David Fetter <[EMAIL PROTECTED]> wrote: > > > On Mon, Jan 14, 2008 at 11:42:50AM -0500, Josh Harrison wrote: > > > Thanks > > > > > > On Jan 12, 2008 9:19 AM, David Fetter <[EMAIL PROTECTED]> wrote: >

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Joshua D. Drake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 16 Jan 2008 10:25:45 -0800 Dirk Riehle <[EMAIL PROTECTED]> wrote: > > > The main company, MySQL AB was all that was left to effectively give > > them control of MySQL. > > > > PostgreSQL obviously doesn't have this risk - No one company holds

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Dave Page
2 out of 7 - which would be Bruce & I. Regards, Dave On 1/16/08, Dirk Riehle <[EMAIL PROTECTED]> wrote: > > > The main company, MySQL AB was all that was left to effectively give > > them control of MySQL. > > > > PostgreSQL obviously doesn't have this risk - No one company holds that > > much po

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Dawid Kuroczko
On Jan 11, 2008 7:14 PM, Scott Marlowe <[EMAIL PROTECTED]> wrote: > > On Jan 11, 2008 12:02 PM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > Hi > > We have an Oracle production database with some terbytes of data. We wanted > > to migrate that to Postgresql (rigt now...a test database and not > > p

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Dirk Riehle
The main company, MySQL AB was all that was left to effectively give them control of MySQL. PostgreSQL obviously doesn't have this risk - No one company holds that much power, and even the -core team is split between the various supporting companies around PostgreSQL. Is this up to date?

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Gauthier, Dave
If MySQL goes the way of Java, maybe there isn't too much to worry about. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Weslee Bilodeau Sent: Wednesday, January 16, 2008 10:56 AM To: Russ Brown Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Sun

Re: [GENERAL] Sun's PostgreSQL contribution?

2008-01-16 Thread Joshua D. Drake
Alvaro Herrera wrote: Joshua D. Drake wrote: dvanatta wrote: How much does Sun currently contribute to the project? Do they have designated coders? They employ a core member who is not a hacker. They provide some machines etc.. They contributed a DTrace patch and the Sun hackers can be seen

Re: [GENERAL] Sun's PostgreSQL contribution?

2008-01-16 Thread Alvaro Herrera
Joshua D. Drake wrote: > dvanatta wrote: >> How much does Sun currently contribute to the project? Do they have >> designated coders? > > They employ a core member who is not a hacker. > They provide some machines etc.. They contributed a DTrace patch and the Sun hackers can be seen from time to

Re: [GENERAL] Sun's PostgreSQL contribution?

2008-01-16 Thread Joshua D. Drake
dvanatta wrote: How much does Sun currently contribute to the project? Do they have designated coders? They employ a core member who is not a hacker. They provide some machines etc.. Sincerely, Joshua D. Drake ---(end of broadcast)--- TIP 1: i

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Joshua D. Drake
Scott Marlowe wrote: On Jan 16, 2008 7:19 AM, Russ Brown <[EMAIL PROTECTED]> wrote: http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ What does this mean for Sun's support of Postgres? I don't see why it should change really, they kind of swim in different waters. What I do think is intere

[GENERAL] Sun's PostgreSQL contribution?

2008-01-16 Thread dvanatta
How much does Sun currently contribute to the project? Do they have designated coders? -- View this message in context: http://www.nabble.com/Sun-acquires-MySQL-tp14881966p14884994.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. ---(end of b

Re: [GENERAL] Building 8.1.11 on FC4

2008-01-16 Thread Tom Lane
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > One of the client machines in my architecture is a Fedora Core 4 box. I > unfortunately cannot change this so I had to build 8.1.11 packages. When I > was building the packages it would fail unless I passed 'pgfts 0'. Fail how? I've never had to

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Scott Marlowe
On Jan 16, 2008 7:19 AM, Russ Brown <[EMAIL PROTECTED]> wrote: > http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ > > What does this mean for Sun's support of Postgres? I don't see why it should change really, they kind of swim in different waters. What I do think is interesting is that Sun mi

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Weslee Bilodeau
Russ Brown wrote: > http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ > > What does this mean for Sun's support of Postgres? > Speaking from pure opinion here :) Oracle for example is buying out the little techs that MySQL relies on - BDB and InnoDB. The main company, MySQL AB was all that w

Re: [GENERAL] Building 8.1.11 on FC4

2008-01-16 Thread Greg Smith
On Wed, 16 Jan 2008, [EMAIL PROTECTED] wrote: it has been suggested that perhaps FC4 is not capable of being thread safe. FC4 deprecated use of Linux Threads in preference to the Native POSIX Thread Library, and I wouldn't be surprised to find that transition wasn't perfect (welcome to 2005'

Re: [GENERAL] know the schema name in a trigger

2008-01-16 Thread Albe Laurenz
danilo.juvinao wrote: > i want know how can i get the schema name that execute a trigger. > > for example, if a have a schema "myschema" and a table "mytable" and > it have a trigger procedure, i want know inside the trigger procedure, > with plpgsql, the shcema name "myschema".. http://www.postg

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Gregory Williamson
Joshua Drake shaped the electrons to say: > > Russ Brown wrote: > > http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ > > > > What does this mean for Sun's support of Postgres? > > > > Does it matter? :) I am sure OmniTI and Command Prompt will be > happy to help any disgruntled customer :)

Re: [GENERAL] Forgot to dump old data before re-installing machine

2008-01-16 Thread Tom Lane
Stefan Schwarzer <[EMAIL PROTECTED]> writes: >> This looks like an endianess mismatch; did you already mention on what >> architecture you are on? > MacPro, Leopard Did you just move from a PPC-based Mac to an Intel-based one? If so, you're out of luck --- you need to go back to the PPC to make a

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Josh Harrison
On Jan 15, 2008 3:58 PM, David Fetter <[EMAIL PROTECTED]> wrote: > On Mon, Jan 14, 2008 at 11:42:50AM -0500, Josh Harrison wrote: > > Thanks > > > > On Jan 12, 2008 9:19 AM, David Fetter <[EMAIL PROTECTED]> wrote: > > > > > On Fri, Jan 11, 2008 at 01:02:01PM -0500, Josh Harrison wrote: > > > > Hi

Re: [GENERAL] Sun acquires MySQL

2008-01-16 Thread Joshua D. Drake
Russ Brown wrote: http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ What does this mean for Sun's support of Postgres? Does it matter? :) I am sure OmniTI and Command Prompt will be happy to help any disgruntled customer :) Sincerely, Joshua D. Drake ---(end of b

[GENERAL] Building 8.1.11 on FC4

2008-01-16 Thread [EMAIL PROTECTED]
Good morning everyone! As you may have guessed from previous posts, i just recently migrated my main database server from 7.4.x to 8.1.11. This part went pretty smoothly. :) One of the client machines in my architecture is a Fedora Core 4 box. I unfortunately cannot change this so I had to buil

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Josh Harrison
> > > > > >> We have an Oracle production database with some terbytes of data. > > > >> We wanted > > > >> to migrate that to Postgresql (rigt now...a test database and not > > > >> production) database. > > > >> What are the good options to do that? > > > >> Please advise me on where to look for m

Re: [GENERAL] Forgot to dump old data before re-installing machine

2008-01-16 Thread Stefan Schwarzer
| The logfile is telling me this when I try to start the server with my | "old" data folder: | | FATAL: database files are incompatible with server | DETAIL: The database cluster was initialized with PG_CONTROL_VERSION | 738394112, but the server was compiled with PG_CONTROL_VERSION 812. |

Re: [GENERAL] libpq updateable resultset?

2008-01-16 Thread Martijn van Oosterhout
On Sun, Jan 13, 2008 at 09:55:08PM +1100, Tristen Ennemuist wrote: > Hello, I'm new to libpq and I'm trying to discover a > means of updating resultset columns. > > I can see there's a "get" PQgetvalue but no "set" > equivalent PQsetvalue. Libpq doesn't do this. Have a nice day, -- Martijn van

Re: [GENERAL] COUNT() with ORDER BY

2008-01-16 Thread Martijn van Oosterhout
On Mon, Jan 14, 2008 at 09:02:46PM +0200, Andrus wrote: > create temp table test (col char); > select count(col) from test order by col; > > causes > > ERROR: column "test.col" must appear in the GROUP BY clause or be used in > an aggregate function > SQL state: 42803 > > > How to fix this ?

Re: [GENERAL] varchar sort ordering ignore blanks

2008-01-16 Thread Csaba Nagy
On Tue, 2008-01-15 at 16:32 +0100, Luca Arzeni wrote: > In all cases I'm using locale LATIN9 during DB creation, but I tested also > with ASCII, UTF8 and LATIN1 encoding. I guess this has nothing to do with the encoding, but with the collation rules used, which is governed by "lc_collate" paramet

Re: [GENERAL] Help with pre-loaded arbitrary key sequences

2008-01-16 Thread Martijn van Oosterhout
On Fri, Jan 11, 2008 at 11:43:54AM -0500, James B. Byrne wrote: > My question is this: Can one assign an id number to a sequenced key column > on create and override the sequencer? If one does this then can and, if > so, how does the sequencer in Postgresql handle the eventuality of running > into

Re: [GENERAL] Can I create a TYPE (or DOMAIN) with arguments?

2008-01-16 Thread R.A.
I think the function-trigger approach will be useful to me to bypass this problem. Thanks to all again for your suggestions! -- Free pop3 email with a spam filter. http://www.bluebottle.com/tag/5 ---(en

[GENERAL] varchar sort ordering ignore blanks

2008-01-16 Thread Luca Arzeni
Hi there, I have a table with a single column, pk of varchar type The table contains few names, say: A C B In the first two records there is a between the and the following letter A and C while, the third one has a B immediately following the (without blanks). In post

[GENERAL] COUNT() with ORDER BY

2008-01-16 Thread Andrus
create temp table test (col char); select count(col) from test order by col; causes ERROR: column "test.col" must appear in the GROUP BY clause or be used in an aggregate function SQL state: 42803 How to fix this ? This statement is generated by DbLinq driver and it is difficult to re-qrite

Re: [GENERAL] 8.2.4 serious slowdown

2008-01-16 Thread Lew
(attribution restored) Clodoaldo wrote: > I don't know if the plan would be the same but this is a bit clearer: > > WHERE COALESCE(b.quantity, 0) > COALESCE(b.deliveredsum, 0) Sim Zacks wrote: That should be true, but sometimes we get deliveries of greater quantity then we ordered. I just

[GENERAL] LIKE and REGEX optimization

2008-01-16 Thread Kico Zaninetti
Hi all. I have a database with 62 million registers and I have to make a SELECT using LIKE. This is my select: SELECT * FROM phone WHERE name LIKE = '%ZANINETTI%' AND city = 'SAO PAULO' AND state = 'SP' I have an index created like this: CREATE INDEX "telefones_idx2" ON "public"."phone" USING

Re: [GENERAL] know the schema name in a trigger

2008-01-16 Thread danilo.juvinao
I did try it but always get "public". i want get the schema that execute the trigger, because i have a function that is used by diferents tables in diferents schemas. thanks for your help, Danilo ---(end of broadcast)--- TIP 3: Have you checked o

Re: [GENERAL] Online Oracle to Postgresql data migration

2008-01-16 Thread Robert Treat
On Friday 11 January 2008 13:44, Josh Harrison wrote: > On Jan 11, 2008 1:22 PM, Erik Jones <[EMAIL PROTECTED]> wrote: > > On Jan 11, 2008, at 12:14 PM, Scott Marlowe wrote: > > > On Jan 11, 2008 12:02 PM, Josh Harrison <[EMAIL PROTECTED]> wrote: > > >> Hi > > >> We have an Oracle production databa

[GENERAL] libpq updateable resultset?

2008-01-16 Thread Tristen Ennemuist
Hello, I'm new to libpq and I'm trying to discover a means of updating resultset columns. I can see there's a "get" PQgetvalue but no "set" equivalent PQsetvalue. I've read the documentation and checked out the examples, but neither seem to indicate that this is possible? I'd appreciate some dir

Re: [GENERAL] Prepared Statements

2008-01-16 Thread Janning Vygen
Am Sonntag 13 Januar 2008 00:46:50 schrieb Tom Lane: > Kris Jurka <[EMAIL PROTECTED]> writes: > > On Thu, 10 Jan 2008, [EMAIL PROTECTED] wrote: > >> What do you mean with "longer lifespan"? Doesn't the JDBC driver uses > >> the PREPARE Sql Statement and therefore the prepared Statement has the > >>

[GENERAL] backup and restore

2008-01-16 Thread hiddenhippo
Having recently jumped ship from MSSQL to Postgres I'm finding it a little difficult getting onto the 'correct path.' Basically I have a live database and I want to take a copy of that and then restore it onto a backup server. Firstly I'm using Postgres 8.2 and pgAdmin 1.6.3 Within the pgAdmin i

Re: [GENERAL] A counter argument about DISTINCT and GROUP BY in PostgreSQL

2008-01-16 Thread dterrors
On Jan 4, 11:48 am, [EMAIL PROTECTED] (Gregory Stark) wrote: > <[EMAIL PROTECTED]> writes: > > I've just spent a few hours searching and reading about the postgres > > way of selecting distinct records. I understand the points made about > > the ORDER BY limitation of DISTINCT ON, and the abiguity

[GENERAL] Sun acquires MySQL

2008-01-16 Thread Russ Brown
http://blogs.mysql.com/kaj/sun-acquires-mysql.html/ What does this mean for Sun's support of Postgres? -- Russ. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Postgresql 8.2.4 on linux-sparc problem

2008-01-16 Thread Lew
Tom Lane wrote: Before you get into that, try reducing these parameters: maintenance_work_mem = 1572864 work_mem = 1048576 They are way too high, especially the second one. So if 1.5 MB maintenance_work_mem and 1 MB work_mem are "way too high", why are the default values in the postgresq

[GENERAL] know the schema name in a trigger

2008-01-16 Thread danilo.juvinao
Hello, i want know how can i get the schema name that execute a trigger. for example, if a have a schema "myschema" and a table "mytable" and it have a trigger procedure, i want know inside the trigger procedure, with plpgsql, the shcema name "myschema".. thanks, pd. sorry for my english, i'm f

Re: [GENERAL] Postgresql 8.2.4 on linux-sparc problem

2008-01-16 Thread Lew
Lew wrote: Tom Lane wrote: Before you get into that, try reducing these parameters: maintenance_work_mem = 1572864 work_mem = 1048576 They are way too high, especially the second one. So if 1.5 MB maintenance_work_mem and 1 MB work_mem are "way too high", why are the default values in t

[GENERAL] Help with pre-loaded arbitrary key sequences

2008-01-16 Thread James B. Byrne
I am prototyping a system migration that is to employ Ruby, Rails and PostgreSQL. Rails has the convention that the primary key of a row is an arbitrary integer value assigned by the database manager through a sequence. As it turns out, the legacy application employs essentially the same conventi

[GENERAL] Prepared statement's plan

2008-01-16 Thread Vyacheslav Kalinin
Hello, I would appreciate if someone explained me how exactly prepared parametrized statements are planned, i.e. what kind of assumptions planner makes on param values, selectivity, expected row count etc. that affect in particular whether indexes will be used or not. For instance consider the fol

Re: [GENERAL] Segmentation fault with 8.3 FTS ISpell

2008-01-16 Thread Teodor Sigaev
Fixes are committed to CVS, hope, they will help you. -- Teodor Sigaev E-mail: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/ ---(end of broadcast)--- TIP 9: In versi

Re: [GENERAL] Forgot to dump old data before re-installing machine

2008-01-16 Thread Thomas Pundt
On Mittwoch, 16. Januar 2008, Stefan Schwarzer wrote: | The logfile is telling me this when I try to start the server with my   | "old" data folder: | | FATAL:  database files are incompatible with server | DETAIL:  The database cluster was initialized with PG_CONTROL_VERSION   | 738394112, but the

Re: [GENERAL] Search connections created per day

2008-01-16 Thread João Paulo Zavanela
>> Hi there, >> >> I want to know how many connections is created simultaneously in data base >> per day. > >Do you want to know the max simo connections at any given time, or the >total connections in a given day? Assuming you want to know the max >simo connections at any given time, I think you'

Re: [GENERAL] Forgot to dump old data before re-installing machine

2008-01-16 Thread Stefan Schwarzer
Ok, did what you said: stopping server, deleting "newly" created "data" directory, re-running initdb, starting the server, stopping the server. Renamed "empty" data directory. Restarting server: NOT COMPLAINING "you need to run initdb" or something else Although it's saying that it

Re: [GENERAL] INSERT with a composite columnt from query

2008-01-16 Thread Richard Huxton
Reg Me Please wrote: What I'd need to do is to insert the results from f_compo() into the table TAB along with a value x. I expected somthing like this to work: insert into tab select 42,row( c.* ) from f_compo() c; But I get ERROR: cannot cast type record to compo You need to add an exp

Re: [GENERAL] INSERT with a composite columnt from query

2008-01-16 Thread Albe Laurenz
Reg Me Please wrote: > I have two table like these: > > create table compo ( > t text, > i int > ); > > create table tab ( > x int, > c compo > ); > > Then I have a function like this: > > create or replace function f_compo() > returns setof compo as $body$ > ... > $body$ language sql s

[GENERAL] INSERT with a composite columnt from query

2008-01-16 Thread Reg Me Please
Hi all. I have two table like these: create table compo ( t text, i int ); create table tab ( x int, c compo ); Then I have a function like this: create or replace function f_compo() returns setof compo as $body$ ... $body$ language sql stable; What I'd need to do is to insert the re

Re: [GENERAL] ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?

2008-01-16 Thread Clodoaldo
2008/1/16, Tom Lane <[EMAIL PROTECTED]>: > I went through this thread again, and noticed something that no one > seems to have remarked on at the time: the vmstat numbers near the > bottom of this post > > http://archives.postgresql.org/pgsql-general/2008-01/msg00161.php This post is from january

Re: [GENERAL] ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?

2008-01-16 Thread Clodoaldo
2008/1/16, Joshua D. Drake <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Wed, 16 Jan 2008 00:29:16 -0500 > Tom Lane <[EMAIL PROTECTED]> wrote: > > > "Joshua D. Drake" <[EMAIL PROTECTED]> writes: > > > If we are sure that this issue is apparent actual row insertion it

Re: [GENERAL] backup and restore

2008-01-16 Thread Dave Page
On 16/01/2008, Richard Huxton <[EMAIL PROTECTED]> wrote: > T.J. Adami wrote: > What puzzles me is that as far as I know, pgAdmin *uses* pg_dump and > pg_restore to handle its backup needs. It does. Make sure it's using the correct version for your server though - that's the only reason it might fa

Re: [GENERAL] LIKE and REGEX optimization

2008-01-16 Thread Richard Huxton
Chris Browne wrote: The only idea that comes to mind to follow that is to look into tsearch. On PostgreSQL 8.3, it's built in; on 8.2 and earlier, it's a "contrib" module. It allows indexing on words inside columns, which would seem to fit your requirement. You might want to google for "postg

Re: [GENERAL] backup and restore

2008-01-16 Thread Richard Huxton
T.J. Adami wrote: On 15 jan, 12:29, [EMAIL PROTECTED] (Richard Huxton) wrote: It's quite simple to have problems with pgAdmin's backup procedure. Hmm - shouldn't be, and if so then please let the pgAdmin people know! They're always working to improve the package and it's I think the same. We