Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
On Apr 19, 2005, at 22:56, Dann Corbit wrote: Have you actually seen any problem in simple get/put/delete/update situations? Not sure, that I understand your question. It's a shame when people spend a great deal of effort to invent a cure for a disease that does not exist. If you have problems with

Re: [GENERAL] postgresql start/stop/status script

2005-04-19 Thread Peter Eisentraut
Baldur Norddahl wrote: > Is there a better way to query the status of postgresql? I would > expect it to at least check that the process in the PID is actually > running and that it is a postgresql process. Maybe try test $(readlink /proc/$pid/exe) = /usr/bin/postgres -- Peter Eisentraut http:/

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
On Apr 19, 2005, at 23:24, Dan Sugalski wrote: At 9:40 PM +0400 4/19/05, Alexandre wrote: Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking for. Speaking from e

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
Tom, yes, something like Berkeley DB, but inside PostgreSQL... It may sounds crazy, but some data just need not all SQL functionality and overhead, and at the same time I need not second db, so the best possible solution (in my opinion): two ways of the data access inside one db. Regards, /Ale

Re: [GENERAL] multibyte question

2005-04-19 Thread John DeSoi
On Apr 19, 2005, at 4:35 AM, neo anderson wrote: lately i download postgresql 8.0.2 (window version) from postgresql mirror website site. and i read the document, saying that postgresql support multibyte encoding (http://www.postgresql.org/docs/8.0/static/multibyte.html). but during installation, i

Re: [GENERAL] reorder table data

2005-04-19 Thread vinita bansal
Hi, There is no particular pattern but it is generally the update queries of the form "update tableName set colName='something'" that are taking a lot of time incase there is a lot of background data. Also, I would not like to change my application to access data from another schema when require

Re: [GENERAL] Idea for the statistics collector

2005-04-19 Thread Bruce Momjian
Added to TODO list: * Log queries where the optimizer row estimates were dramatically different from the number of rows actually found (?) --- Doug Fields wrote: > > >Tom Lane wrote: > > > Bruce Momjian

Re: [GENERAL] pg_dump fails

2005-04-19 Thread Lorenzo Thurman
What I was trying to do was export the database on one computer and import it onto another. I gave up trying to fix the export problem since I had an old backup of the database. It was old enough that it was short three tables, but I have the raw tab delimited data so I just reconstructed the datab

[GENERAL] lots of puzzling log messages

2005-04-19 Thread Dennis Sacks
I am Seeing twelve of these messages every five to ten seconds in the Postgresql serverlog when my java application is running: 2005-04-19 16:43:03 LOG: 0: duration: 0.246 ms LOCATION: exec_simple_query, postgres.c:960 2005-04-19 16:43:03 LOG: 0: statement: rollback; begin; LOCATION:

Re: [GENERAL] pg_dump fails

2005-04-19 Thread Russell Smith
On Tue, 19 Apr 2005 11:53 pm, Lorenzo Thurman wrote: > Thanks for the reply. I've tried recompiling with my install build > settings, but no luck. I've posted a message on the Gentoo forums. > Hopefully they will have an answer. If they do, I'll post back here for > future reference. > I read y

[GENERAL] postgresql start/stop/status script

2005-04-19 Thread Baldur Norddahl
Hi, I am working on making a postgresql/drbd/heartbeat high availability cluster. I need a script for heartbeat to start, stop and query the service. I wrote the following: pgStart() { su - pg0 -c "cd data ; /mnt/data0/postgresql/bin/pg_ctl start -D /mnt/data0/postgresql/data -w -o '-i -

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Dan Sugalski
At 9:40 PM +0400 4/19/05, Alexandre wrote: Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking for. Speaking from experience, as I have a system which hides Postg

Re: [GENERAL] What means Postgres?

2005-04-19 Thread Dann Corbit
Ironic too, if we think of the name "Stonebreaker" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Harding Sent: Tuesday, April 19, 2005 9:02 AM To: Michael Fuhr Cc: Daniel Schuchardt; pgsql-general@postgresql.org Subject: Re: [GENERAL] What means Post

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Dann Corbit
Have you actually seen any problem in simple get/put/delete/update situations? It's a shame when people spend a great deal of effort to invent a cure for a disease that does not exist. If you have problems with any of these things, there are usually good solutions. Using the copy API, you can in

Re: [GENERAL] Help! "Access is Denied" Installation on WinXP rolled

2005-04-19 Thread Alvaro Herrera
On Tue, Apr 19, 2005 at 11:31:50AM -0600, Abe Burnett wrote: > Essentially, literally installing an application with a > non-administrative account is nearly impossible because that's the > whole purpose of having such things as non-administrative accounts. > I'm probably preaching to the choir he

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Tom Lane
Alexandre <[EMAIL PROTECTED]> writes: > Lane, thank you, but it is not: PostISAM "generates SQL statements on > the fly from traditional ISAM (read, write, start) statements", so it > just add overhead, and is not what I'm looking for. Well, if you don't want any SQL capability at all, I think y

Re: [GENERAL] reorder table data

2005-04-19 Thread Joshua D. Drake
Richard Huxton wrote: vinita bansal wrote: Hi, I have a 40GB database with a few tables containing approx 10 million rows. Most of the data in these tables is inactive and there is only a few rows which get used for our benchmark run each day. We cannot delete the inactive data since it might b

Re: [GENERAL] reorder table data

2005-04-19 Thread Richard Huxton
vinita bansal wrote: Hi, I have a 40GB database with a few tables containing approx 10 million rows. Most of the data in these tables is inactive and there is only a few rows which get used for our benchmark run each day. We cannot delete the inactive data since it might be required for a parti

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Don Isgitt
Michael Fuhr wrote: On Tue, Apr 19, 2005 at 12:39:52PM -0400, Alvaro Herrera wrote: On Tue, Apr 19, 2005 at 10:03:45AM -0600, Michael Fuhr wrote: On Tue, Apr 19, 2005 at 11:17:46AM -0500, Don Isgitt wrote: Thanks, Tom. Interestingly enough, neither my original query or your correct

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking for. Anyway, thank you for the information. Regards, /Alexandre. On Apr 19, 2005, at 18:16, Tom Lane wrote: A

Re: [GENERAL] Help! "Access is Denied" Installation on WinXP rolled

2005-04-19 Thread Abe Burnett
Thanks for helping Joshua! While I do attempt to install PostgreSQL using my normal windows account (which of course has administrative rights), I've installed PostgreSQL before and never run into this problem. It appears that as long as you establish a different user name which isn't an administra

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Benjamin Holmberg
Then I guess I need to know how one can encapsulate variables in quotes, yet let the pl/pgsql interpreter interpolate. In the case of my SELECT INTO, are the quotes even needed to avoid potential confusion with column names?On 4/19/05, Richard Huxton < dev@archonet.com> wrote:Benjamin Holmberg wrot

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Richard Huxton
Benjamin Holmberg wrote: This is the error message I'm getting by using: ''arg_id'' instead of: (CAST(arg_id AS integer)) SELECT production_scheduled_for_date('2005-05-12', '49'); ERROR: invalid input syntax for integer: "arg_id" That's because ''arg_id'' is the string value "arg_id", those six ch

Re: [GENERAL] PostgreSQL as a filesystem

2005-04-19 Thread Christopher Nelson
> On Mon, 2005-04-18 at 17:18 -0400, Tom Lane wrote: > > "Christopher Nelson" <[EMAIL PROTECTED]> writes: > > > I'm developing a hobby OS and I'm looking into file systems. I've > > > thought about writing my own, and that appeals, but I'm also very > > > interested in the database-as-a-filesystem

[GENERAL] reorder table data

2005-04-19 Thread vinita bansal
Hi, I have a 40GB database with a few tables containing approx 10 million rows. Most of the data in these tables is inactive and there is only a few rows which get used for our benchmark run each day. We cannot delete the inactive data since it might be required for a particular run some day wh

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Michael Fuhr
On Tue, Apr 19, 2005 at 12:39:52PM -0400, Alvaro Herrera wrote: > On Tue, Apr 19, 2005 at 10:03:45AM -0600, Michael Fuhr wrote: > > On Tue, Apr 19, 2005 at 11:17:46AM -0500, Don Isgitt wrote: > > > > > > Thanks, Tom. Interestingly enough, neither my original query or your > > > corrected one retur

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Alvaro Herrera
On Tue, Apr 19, 2005 at 10:03:45AM -0600, Michael Fuhr wrote: > On Tue, Apr 19, 2005 at 11:17:46AM -0500, Don Isgitt wrote: > > > > Thanks, Tom. Interestingly enough, neither my original query or your > > corrected one returns anything with pg 7.4--another good reason to > > upgrade to 8.* > > H

Re: [GENERAL] What means Postgres?

2005-04-19 Thread Daniel Schuchardt
Michael Fuhr schrieb: According to "The design of POSTGRES" by Stonebreaker and Rowe, POSTGRES means "POST inGRES" (the successor to INGRES). Various other sources say that INGRES means "INteractive Graphics (and) REtrieval System." Ah, this is what i searched. I read http://www.postgresql.org/doc

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Michael Fuhr
On Tue, Apr 19, 2005 at 11:17:46AM -0500, Don Isgitt wrote: > > Thanks, Tom. Interestingly enough, neither my original query or your > corrected one returns anything with pg 7.4--another good reason to > upgrade to 8.* Hmmm...for me both queries give the results shown if I run them in 7.3.9, 7.4

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Richard Huxton
Don't forget to cc: the list... Benjamin Holmberg wrote: This is one of the "bad" ones... I would call it like the following: SELECT SIMPLE_date_used('5/11/06','5'); Well, you're trying to call it with two text-values here (or at least two unknown values). SELECT simple_date_used('5/11/06'::date,

Re: [GENERAL] What means Postgres?

2005-04-19 Thread Ian Harding
Or, according to Babelfish, if "Postgres" is a Spanish word, it translates to "poststoneware" in English. Nonsense of course, but I thought it was funny. On 4/19/05, Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Tue, Apr 19, 2005 at 05:24:22PM +0200, Daniel Schuchardt wrote: > > > > What means Pos

Re: [GENERAL] What means Postgres?

2005-04-19 Thread Michael Fuhr
On Tue, Apr 19, 2005 at 05:24:22PM +0200, Daniel Schuchardt wrote: > > What means Postgres? Where and why this name was born? See "A Brief History of PostgreSQL" in the PostgreSQL documentation and some of the documents it links to: http://www.postgresql.org/docs/8.0/interactive/history.html Ac

Re: [GENERAL] What means Postgres?

2005-04-19 Thread Benjamin Holmberg
Its a takeoff of ingres, the ORDBMS (Object-Relational Database Management System) postgres is based on...The origins date to 1977 at UC Berkeley. On 4/19/05, Daniel Schuchardt <[EMAIL PROTECTED]> wrote: Just for fun and interrest.What means Postgres? Where and why this name was born?Daniel

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Don Isgitt
Tom Lane wrote: Don Isgitt <[EMAIL PROTECTED]> writes: gds2=# select substring('NE NE SE 2310 FSL 330 FEL' from '^([A-Z][A-Z] )+'); substring --- SE (1 row) The pg docs say that this form of substring uses POSIX re's, and my understanding of POSIX re's is they are always greedy

[GENERAL] What means Postgres?

2005-04-19 Thread Daniel Schuchardt
Just for fun and interrest. What means Postgres? Where and why this name was born? Daniel ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Benjamin Holmberg
This is one of the "bad" ones hacked up to work like it should... I would call it like the following: SELECT SIMPLE_date_used('5/11/06','5'); beginning_date and ending_date are date columns in MyTable.  The function is checking to see if given_date falls within a date range that has already been

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Michael Fuhr
On Tue, Apr 19, 2005 at 10:01:26AM -0500, Benjamin Holmberg wrote: > > When creating a function which accepts a single argument, things work just > fine, variable can be used throughout the function as expected with no > modification. > When creating functions containing two or more arguments, I

Re: [GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Richard Huxton
Benjamin Holmberg wrote: Hello- This is my first foray into pl/psql so forgive me if I sound totally incompetent. I've been writing a few functions, and have come across some screwing data typing issues. When creating a function which accepts a single argument, things work just fine, variable

[GENERAL] Datatypes in PL/PSQL functions with multiple arguments

2005-04-19 Thread Benjamin Holmberg
Hello-   This is my first foray into pl/psql so forgive me if I sound totally incompetent.   I've been writing a few functions, and have come across some screwing data typing issues.   When creating a function which accepts a single argument, things work just fine, variable can be used throughou

Re: [GENERAL] substring and POSIX re's

2005-04-19 Thread Tom Lane
Don Isgitt <[EMAIL PROTECTED]> writes: > gds2=# select substring('NE NE SE 2310 FSL 330 FEL' from '^([A-Z][A-Z] )+'); > substring > --- > SE > (1 row) > The pg docs say that this form of substring uses POSIX re's, and my > understanding of POSIX re's is they are always greedy. So, why d

[GENERAL] Finding FOREIGN KEY constraints via information_schema

2005-04-19 Thread Harald Fuchs
I'm trying to find out which columns of which tables reference which columns of which tables by querying the information_schema. I found the referencing columns in key_column_usage and the referenced columns in constraint_column_usage - fine so far. Now consider the following: CREATE TABLE t1

[GENERAL] substring and POSIX re's

2005-04-19 Thread Don Isgitt
Hi. First: PG version 7.4 and 8.0. I have a question regarding the following simplified query: gds2=# select substring('NE NE SE 2310 FSL 330 FEL' from '^([A-Z][A-Z] )+'); substring --- SE (1 row) The pg docs say that this form of substring uses POSIX re's, and my understanding of POSIX re

Re: [GENERAL] Clarification

2005-04-19 Thread Tom Lane
ElayaRaja S <[EMAIL PROTECTED]> writes: > bash-2.05b$ pg_ctl stop > /usr/local/pgsql/bin/pg_ctl: line 274: kill: (19859) - No such process > waiting for postmaster to shut > down > failed > pg_ctl: postmaster does not shut down Is the

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Tom Lane
Alexandre <[EMAIL PROTECTED]> writes: > What I mean is: currently to get/put/delete/edit any data I have to > compose an SQL query, which should be parsed, compiled, optimized and > so on. While, in some tasks simple interface a-la [G|N]DBM should be > more than enough, but it will be more prefe

[GENERAL] Trigger Commandline Command from Postgresql

2005-04-19 Thread Thomas Chille
Hi List! What ist the best and easiest way to trigger a commandline command out from the database? We want to start a printjob. I think it could work with pl/tclu but i am not familar with that language. Thanks in Advance, Thomas ---(end of broadcast)

Re: [GENERAL] Postgresql 8.0.2 SLES 9 rpm - libpq.so.3 broken

2005-04-19 Thread Devrim GUNDUZ
Hi, On Tue, 19 Apr 2005, Leonel Nunez wrote: There's been a change on libpq from libpq.so.3 to libpq.so.4 you need to recompile all the pagackes that depend on libpq.so.3 so they can use the new libpq.so.4 Actually, no. Reinhard Max, the SuSE PostgreSQL RPM maintainer has just wrote that: "W

Re: [GENERAL] Postgresql 8.0.2 SLES 9 rpm - libpq.so.3 broken

2005-04-19 Thread Leonel Nunez
R WARRINER wrote: Anyone ran across a broken libpq.so.3 link from the SLES rpm, and if so found a solution to fix it? Regards, Paul PS, YaST2 conflicts list - generated 2005-04-19 04:22:00 freeradius 0.9.3-106.6 conflict Unresolved Requirements: freeradius requires

Re: [GENERAL] pg_dump fails

2005-04-19 Thread Lorenzo Thurman
Thanks for the reply. I've tried recompiling with my install build settings, but no luck. I've posted a message on the Gentoo forums. Hopefully they will have an answer. If they do, I'll post back here for future reference. On Apr 19, 2005, at 1:01 AM, Tom Lane wrote: Lorenzo Thurman <[EMAIL PR

Re: [GENERAL] Indexes in PostgreSQL

2005-04-19 Thread jackfitz
Yes. Thanks. I ran VACUUM ANALYZE and got the same results... -Jack ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] Postgresql 8.0.2 SLES 9 rpm - libpq.so.3 broken

2005-04-19 Thread R WARRINER
Anyone ran across a broken libpq.so.3 link from the SLES rpm, and if so found a solution to fix it?   Regards, Paul   PS, YaST2 conflicts list - generated 2005-04-19 04:22:00   freeradius 0.9.3-106.6 conflict     Unresolved Requirements:     freeradius requires libpq

[GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
Good day, excuse me, if my question is lame, but is it possible to get some simplified access to the PostgreSQL? What I mean is: currently to get/put/delete/edit any data I have to compose an SQL query, which should be parsed, compiled, optimized and so on. While, in some tasks simple interface

[GENERAL] multibyte question

2005-04-19 Thread neo anderson
lately i download postgresql 8.0.2 (window version) from postgresql mirror website site. and i read the document, saying that postgresql support multibyte encoding (http://www.postgresql.org/docs/8.0/static/multibyte.html). but during installation, i can't find the item in the drop-down list, which

Re: [GENERAL] PostgreSQL as a filesystem

2005-04-19 Thread Marco Colombo
On Mon, 2005-04-18 at 17:18 -0400, Tom Lane wrote: > "Christopher Nelson" <[EMAIL PROTECTED]> writes: > > I'm developing a hobby OS and I'm looking into file systems. I've > > thought about writing my own, and that appeals, but I'm also very > > interested in the database-as-a-filesystem paradigm

[GENERAL] Clarification

2005-04-19 Thread ElayaRaja S
Hi, I am using postgreSQL 7.4.5 in Redhat Linux 9. Whenever i faced power failure , i am unable to stop the postgres. bash-2.05b$ pg_ctl stop /usr/local/pgsql/bin/pg_ctl: line 274: kill: (19859) - No such process waiting for postmaster to shut down...