[GENERAL] Backend sent D message without prior T

2001-04-13 Thread Jeff Eckermann
My main server is down, so I am using my backup copy on a different database. Based on past posts I have read, this error is usually associated with running out of memory for the query result. Problem is, I am only expecting about 30 lines of moderate length to be returned I see nothing in t

Re: [GENERAL] Order in CREATE VIEW

2001-04-13 Thread Oliver Elphick
"Marcin Wasilewski" wrote: >hello everybody, >Can you help me? > >I have POSTGRESQL 7.0.3, >I try to create simple view by typing. > >create view "xx" as select "aa.yy", "bb.yy" from "yy" order by "bb.yy" > >the problem is that parameter order is not implemented with create view.

RE: [GENERAL] Very slow query, Help please!

2001-04-13 Thread Mike Mascari
You should rewrite your query using NOT EXISTS: insert into LTable select * from STable where NOT EXISTS ( SELECT L.ID FROM LTable L WHERE L.ID = ID); This will use an index scan on LTable. This is also a FAQ item BTW. Hope that helps, Mike Mascari [EMAIL PROTECTED] -Original Message

Re: [GENERAL] Deadlock detected

2001-04-13 Thread Maurice Balick
Hi Tom, [EMAIL PROTECTED]">"Brian J. France" <[EMAIL PROTECTED]> writes: I am getting a few of these errors in my web logs and didn't know what I could do to stop it. NOTICE: Deadlock detected -- See the lock(l) manual page for a possible cause. Error in query "UPDATE SET = WHER

[GENERAL] Very slow query, Help please!

2001-04-13 Thread Igor
Hi ! Help me please to resolv my problem. I have two tables . One of them is large (say 10 records) with unique index on "ID" and the second table (5000 records ) which i have to insert into the first table , but the second table have much records, which have many duplicate values in "ID" .

Re: [GENERAL] anti Christian bias?

2001-04-13 Thread Lamar Owen
On Fri, 13 Apr 2001, Bruce Momjian wrote: > Lamar Owen wrote: > > As a matter of fact, I am an ordained Baptist minister. Don't > > know about Bruce -- other than I like his catchy .sig... :-) > Wow, pretty cool. I am just an underling. :-) Well, we're all underlings. At most I can be an un

Re: [GENERAL] anti Christian bias?

2001-04-13 Thread Bruce Momjian
> On Fri, 13 Apr 2001, Karl DeBisschop wrote: > As for postgresql > having an anit-Christian bias? I think Lamar and > Bruce, among > others, could not be accused of an anti-Christian bias. > > Thanks, Karl. > > As a matter of fact, I am an ordained Baptist minister. Don't > know about Bruce -

Re: [GENERAL] Benchmarking PostgreSQL

2001-04-13 Thread Ned Lilly
Justin Clift wrote: > As an aside, did anyone ever step up to create a TPC-C benchmark suite for > PostgreSQL? Part of the Great Bridge QA process (on every beta, every community major and minor release, and certainly any release we distribute on CD) is the running of the TPC tests and the AS3AP

Re: [GENERAL] anti Christian bias?

2001-04-13 Thread GH
On Wed, Apr 11, 2001 at 06:32:50PM +, some SMTP stream spewed forth: > Hi all: > > On page 29 of the PostgreSQL User's Guide, distributed with version 7.0.3, > in table 3-8 Postgres Date Input, the last item in the Example column is > January 8, 99 BC. The corresponding Description item rea

[GENERAL] to_char(now(), 'YYYY') and time zones

2001-04-13 Thread Simon Bæk Carstensen
I'm trying to pull the current year with the following query: select to_char(now(), ''); This is fine. Now, I would like to select this date in different time zones. Normally I just do: select now() at time zone 'utc'; I guess I need a combination of the 2 queries above - one that asks fo

[GENERAL] Timestamps for BLOB fields

2001-04-13 Thread Jason Larke
I'm putting together a small database to track communication with our customers as we make some changes to our service. I want the database to store a diary of all the email we have with each customer on this subject, and I'm using BLOBs to store that information. I also want to have a timestamp

Re: [GENERAL] Shared memory failure?

2001-04-13 Thread Lamar Owen
"Justin S." wrote: > > Thanks Tom. Yeah, I heard that an older version PostgreSQL was used. So if I > just use a different port number, and not try replacing the version that > comes with the OS, everything should work fine? How do I start PostgreSQL on > a different port (and which would you rec

Re: [GENERAL] Shared memory failure?

2001-04-13 Thread Lamar Owen
"Justin S." wrote: > > Thanks Tom. Yeah, I heard that an older version PostgreSQL was used. So if I > just use a different port number, and not try replacing the version that > comes with the OS, everything should work fine? How do I start PostgreSQL on > a different port (and which would you rec

Re: [GENERAL] consider increasing WAL_FILES

2001-04-13 Thread Tom Lane
[EMAIL PROTECTED] writes: > Should I worry? Not unless you see that message frequently during routine operations. Initial bulk data load doesn't count as routine ... > How do I increase WAL_FILES? See the documentation. regards, tom lane ---(end

Re: [GENERAL] updates way slower than selects?

2001-04-13 Thread Marek Pętlicki
On Friday, April, 2001-04-13 at 18:34:06, Tom Lane wrote: > > I've got a question: has anybody noticed in your production > > tables, that updates on existing rows take longer than inserts > > into those same tables? > > Updates naturally take longer than inserts. Especially if you haven't > pro

RE: [GENERAL] Shared memory failure?

2001-04-13 Thread Justin S.
Thanks Tom. Yeah, I heard that an older version PostgreSQL was used. So if I just use a different port number, and not try replacing the version that comes with the OS, everything should work fine? How do I start PostgreSQL on a different port (and which would you recommend)? Thanks. Sincerely,

Re: [GENERAL] Shared memory failure?

2001-04-13 Thread Tom Lane
"Justin S." <[EMAIL PROTECTED]> writes: > Cobalt RaQ4i with version 6 of their operating system. Oh. I think Cobalt has a Postgres (6.5.something?) installed as part of the OS. You'll need to pick a different port number than 5432 to avoid conflicting with the system's server. BTW, I've heard

[GENERAL] consider increasing WAL_FILES

2001-04-13 Thread newsreader
I dump database from 7.0.3 and attempting to restore to 7.1rc4. And get the following messages. I can reproduce them by dropping new db and recreating new ones. Line number varies from one restore to the next and 'MoveOfflineLogs' message was seen only once Should I worry? How do I increase W

Re: [GENERAL] Shared memory failure?

2001-04-13 Thread Tom Lane
"Justin S." <[EMAIL PROTECTED]> writes: > IpcMemoryCreate: shmget failed (Permission denied) key=5432010, size=144, > permission=700 Apparently you have an existing shm segment belonging to a different userid. Did you previously start the postmaster under a different user? If so you'll need to g

RE: [GENERAL] Shared memory failure?

2001-04-13 Thread Justin S.
Cobalt RaQ4i with version 6 of their operating system. Sincerely, Justin Stayton CometFly Media, LLC. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Wolfe Sent: Friday, April 13, 2001 1:13 PM To: [EMAIL PROTECTED] Subject: Re: [

Re: [GENERAL] Shared memory failure?

2001-04-13 Thread Steve Wolfe
> First off, I'd just like to thank everyone for their help with my last > problem. It worked, but now it gives me another error: > > IpcMemoryCreate: shmget failed (Permission denied) key=5432010, size=144, > permission=700 > This type of error is usually caused by an improper > shared memory or

Re: [GENERAL] Using pl/pgsql or sql for in/out functions for types

2001-04-13 Thread Tom Lane
John Havard <[EMAIL PROTECTED]> writes: > Is there anyway to do this without having to resort to writing the > functions in C or some other language? You really cannot write datatype I/O functions in anything but C, because the I/O functions have to deal in C-style strings, which are not a SQL d

Re: [GENERAL] pg_dump dying (and VACUUM ANALYZE woes)...

2001-04-13 Thread Tom Lane
Steve Wampler <[EMAIL PROTECTED]> writes: > I'm getting the following error from pg_dump when trying to > dump a particular database: > == > -> pg_dump logdb >logdb.dump > pqWait() -- connection not open > PQendcopy: resetting connection

Re: [GENERAL] Deadlock detected

2001-04-13 Thread Tom Lane
"Brian J. France" <[EMAIL PROTECTED]> writes: > I am getting a few of these errors in my web logs and didn't know what I could do >to stop it. > NOTICE: Deadlock detected -- See the lock(l) manual page for a possible cause. > Error in query "UPDATE SET = WHERE = " : >ERROR: WaitOnLock:

[GENERAL] Shared memory failure?

2001-04-13 Thread Justin S.
First off, I'd just like to thank everyone for their help with my last problem. It worked, but now it gives me another error: IpcMemoryCreate: shmget failed (Permission denied) key=5432010, size=144, permission=700 This type of error is usually caused by an improper shared memory or System V IPC

Re: [GENERAL] Question about SELECT FOR UPDATE in transaction, isolation level

2001-04-13 Thread Tom Lane
Al <[EMAIL PROTECTED]> writes: > begin work; > select val from ids where cntr='ct1' for update; > update ids set val=val+(some integer value) where cntr='ct1'; > commit work; Looks reasonable. > However, when I run everything except the commit on one terminal and > then run up to and including t

Re: [GENERAL] updates way slower than selects?

2001-04-13 Thread Tom Lane
> I've got a question: has anybody noticed in your production > tables, that updates on existing rows take longer than inserts > into those same tables? Updates naturally take longer than inserts. Especially if you haven't provided an index that allows the row(s) to be updated to be found easily

Re: [GENERAL] Repairing bad table?

2001-04-13 Thread Tom Lane
Steve Wampler <[EMAIL PROTECTED]> writes: > I need help - I've had a system crash that has left a table with some > invalid OIDs. How do I clean this up? If I try a vacuum analyze, > I get: > configdb=# vacuum analyze; > NOTICE: Rel attributes_table: TID 3304/23: OID IS INVALID. TUPGONE 1. > N

Re: [GENERAL] Re: ongoing holy grail thread - VICTORY!!!

2001-04-13 Thread Justin Clift
Hi Tony, That's great to hear. :-) You need a saying like "'twas a long hard battle, but in the end we emerged victorious" about now. Heh Heh Heh Tony Grant wrote: > Does not work, must be "host db_name IP user ident" > > Maybe this has something to do with java security??? Dunno. Errr...

[GENERAL] Re: Debian stable install problems

2001-04-13 Thread J.H.M. Dassen (Ray)
Stan Brown <[EMAIL PROTECTED]> wrote: >I am having a bit of trouble geting PostgreSQL working quite corectly on my >fresh Debian "stable" istall. > >I installed it using the Debina dselect tool. Now, If I su - postgres, I >can use psql to connect to the db, so I know that that part of the install

Re: [GENERAL] Re: ongoing holy grail thread - VICTORY!!!

2001-04-13 Thread Tony Grant
On 12 Apr 2001 22:40:56 +1000, Justin Clift wrote: > When we installed Tomcat and PostgreSQL, I just copied the > postgresql.jar file into the /lib directory inside the tomcat > installation directory... Justin wins the case of champagne (virtual for the time being) The secret is there - where

[GENERAL] Debian stable install problems

2001-04-13 Thread Stan Brown
I am having a bit of trouble geting PostgreSQL working quite corectly on my fresh Debian "stable" istall. I installed it using the Debina dselect tool. Now, If I su - postgres, I can use psql to connect to the db, so I know that that part of the install went OK. However I am having a problem addi

[GENERAL] New look for the techdocs website...

2001-04-13 Thread Justin Clift
Hi all, I've just taken a bit of time to give a more organised look to the whole techdocs.postgresql.org website. If anyone has a few moments spare, could they please take a look and tell me what they think? I like it, but if most people don't, I'll change it back. Regards and best wishes, Ju

[GENERAL] setObject bug in postgresql jdbc driver

2001-04-13 Thread Dave Cramer
  Hi,   I have some code which legitimately tries to call setObject(n,o) where o is an Object, and is null. The jdbc driver doesn't check for this type, and as a result fails.     This is how I changed the code to deal with this.    public void setObject(int parameterIndex, Object x) throws

Re: [GENERAL] Address already in use?

2001-04-13 Thread Peter Eisentraut
Justin S. writes: > /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data > > I get the following error: > > FATAL: StreamServerPort: bind() failed: Address already in use > Is another postmaster already running on that port? > If not, remove socket node (/tmp/.s.PGSQL.5432) an

Re: [GENERAL] Address already in use?

2001-04-13 Thread Victor Ivanov
On Thu, Apr 12, 2001 at 11:20:29PM -0400, Justin S. wrote: > Hi Everyone, > > Alright, I've installed PostgreSQL 7.0.3 succesfully, but I still have a > problem. When I try starting the PostgreSQL server, using the following > command: > > /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data

re : [GENERAL] Address already in use?

2001-04-13 Thread pejac
Hi, Did you stop the postmaster with an SIGKILL ??? Just go into temp directory and delete file .s.PGSQL.5432 After try to restart postmaster. PostgreSQL check this file in order to know if an another postmaster is running, so if you kill postmaster, it dosen't delete this file. Cheers, PEJA