[GENERAL] TIMEZONE not working?

2003-11-26 Thread cnliou
Hi! If I correctly understand v7.4 manual, value, say, '2003-11-26 12:00' in TIMESTAMP WITHOUT TIMEZONE column should output '2003-11-26 19:00' for "+08:00" timezone. The following test results seem to be somewhat unexpected. Restting OS timezone (/etc/timezone and /etc/localtime in Linux) do

Re: [GENERAL] TIMEZONE not working?

2003-11-26 Thread Tom Lane
"cnliou" <[EMAIL PROTECTED]> writes: > If I correctly understand v7.4 manual, value, say, > '2003-11-26 12:00' in TIMESTAMP WITHOUT TIMEZONE column > should output '2003-11-26 19:00' for "+08:00" timezone. Not at all. TIMESTAMP WITHOUT TIMEZONE will not react to timezone environment at all. Wh

Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-26 Thread Marek Lewczuk
Użytkownik Robert Treat napisał: On Tue, 2003-11-25 at 08:07, Marek Lewczuk wrote: Yes. I think the gist of your post was "out of the box postgresql performed like garbage compared to mysql, but then i spent some time tweaking and tuning, taking advantage of indexes, and now it performs so quickly

Re: [GENERAL] duplicate primary key entries?

2003-11-26 Thread Baldur Norddahl
I found the problem. It was not hardware problems or any malfunction in postgresql. I thought I had dropped all tables that inherited from the problem table, but apparently I forgot one. It really sucks that inheritance breaks their parent tables constraints :-(. Which is also why we had to drop

Re: [GENERAL] pam authentication for postgres

2003-11-26 Thread Richard Huxton
On Tuesday 25 November 2003 21:13, Jason Tesser wrote: > I did go back and edit the files manually. As far as I can tell it is > entered correctly in the pg_hba.conf file Do you have a file set up on the pam side of things? Each service using pam should have a config file (in /etc/pam.d on redha

Re: [GENERAL] TIMEZONE not working?

2003-11-26 Thread cnliou
Hello! Tom, >Not at all. TIMESTAMP WITHOUT TIMEZONE will not react to timezone >environment at all. Absolutely right! I seemed to have trouble understanding lengthy, though good, documentation. Here are some minor issues I have encountered: - SQL commands like "SET TIMEZONE TO NZDT" are ille

Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-26 Thread cnliou
>> I'm curious as to what type of application you run and what first >> prompted you to switch to postgresql? I would like to add my 2 cents to this although I have not been asked by anyone about this :-) If I remember correctly the fact about 7 years ago... when PostgreSQL already supported -

Re: [GENERAL] Embedded Vacuum Still Not Working...

2003-11-26 Thread Michael Meskes
On Wed, Nov 19, 2003 at 11:16:18PM -0700, [EMAIL PROTECTED] wrote: > Turning OFF AUTOCOMMIT as suggested didn't solve the problem. Sure as it is OFF by default. You have to turn it ON. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber

Re: [GENERAL] TIMEZONE not working?

2003-11-26 Thread Richard Huxton
On Wednesday 26 November 2003 09:02, cnliou wrote: > [QUOTE] > Note: When timestamp values are stored as double precision > floating-point numbers (currently the default), the > effective limit of precision may be less than 6. timestamp > values are stored as seconds since 2000-01-01, and > microse

Re: [GENERAL] indexing with lower(...) -> queries are not optimised very well - Please Help

2003-11-26 Thread Martin Hampl
Am 21.11.2003 um 06:54 schrieb Tom Lane: Martin Hampl <[EMAIL PROTECTED]> writes: Index Scan using word_lower_idx on token (cost=0.00..98814.08 rows=25382 width=16) Index Cond: (lower((word)::text) = 'saxophone'::text) The rows estimate (and therefore also the cost estimate) is a complete g

Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-26 Thread Barbara Lindsey
How does the performance compare using models mimicked from Oracle? Is there any information anywhere on that? Marek Lewczuk wrote: Użytkownik Robert Treat napisał: On Tue, 2003-11-25 at 08:07, Marek Lewczuk wrote: Yes. I think the gist of your post was "out of the box postgresql performed like

[GENERAL] cross table indexes?

2003-11-26 Thread Jeremiah Jahn
I was wondering if there is something I can do that would act similar to a index over more than one table. I have about 3 million people in my DB at the moment, they all have roles, and many of them have more than one name. for example, a Judge will only have one name, but a Litigant could have

[GENERAL] marking record origin in views

2003-11-26 Thread Claudio Lapidus
Hello list I have two tables with identical structure, one holds 'correct' data (from an application standpoint) and the other has data 'in error'. Anyway, I need sometimes to query both tables at the same time, so I constructed an elementary view create view v1 as select * from t1 union select *

Re: [GENERAL] marking record origin in views

2003-11-26 Thread Peter Alberer
Hmm, what about create view v1 as select *,1 as source from t1 union select *,2 as source from t2; >Hello list > >I have two tables with identical structure, one holds 'correct' data (from >an application standpoint) and the other has data 'in error'. Anyway, I >need >

Re: [GENERAL] duplicate primary key entries?

2003-11-26 Thread Tom Lane
Baldur Norddahl <[EMAIL PROTECTED]> writes: > It really sucks that inheritance breaks their parent tables constraints :-(. Yeah, we know :-(. Sooner or later someone will work out a solution to that. Thanks for following up to close out this open issue. regards, tom lane

Re: [GENERAL] pam authentication for postgres

2003-11-26 Thread Jason Tesser
OK I am still trying to get pam working here is the messages I have is the log from trying to log in Nov 26 08:55:16 localhost postgresql(pam_unix)[22693]: authentication failure; logname= uid=26 euid=26 tty= ruser= rhost= user=cherring Nov 26 08:55:16 localhost pam_winbind[22693]: user 'cher

Re: [GENERAL] pam authentication for postgres

2003-11-26 Thread Jason Tesser
sorry for teh double posting I forgot the steps at the end OK I am still trying to get pam working here is the messages I have is the log from trying to log in Nov 26 08:55:16 localhost postgresql(pam_unix)[22693]: authentication failure; logname= uid=26 euid=26 tty= ruser= rhost= user=cherrin

Re: [GENERAL] Index on array element

2003-11-26 Thread Tom Lane
Randolf Richardson <[EMAIL PROTECTED]> writes: >>> How can I create an index on an array element? >> >> You need 7.4 and an extra layer of parentheses: >> >> create index foodex on foo ((textarray[3])); > Sorry, but this isn't obvious to me as arrays in a database are a new > concept for

Re: [GENERAL] SCSI vs. IDE performance test

2003-11-26 Thread Ben
Base-two artihmetic sounds pretty broad. If only you could come up with a scheme for division and multiplication by powers of two through bitshifting. On Wed, 26 Nov 2003, Tom Lane wrote: > Randolf Richardson <[EMAIL PROTECTED]> writes: > >> They've managed to patent ye olde elevator algorith

Re: [GENERAL] postgres metadata

2003-11-26 Thread Martijn van Oosterhout
Please remember: - OIDs are NOT unique - CTIDs are unique but not constant - SERIALs are unique and forever On Wed, Nov 26, 2003 at 10:39:43AM -0600, James Thompson wrote: > > I think oid is what you want. > > select oid,* from table; > > Take Care, > James > > On Wed, 26 Nov 2003, Barbara Li

[GENERAL] disaster recovery

2003-11-26 Thread Jason Tesser
We are evaluating Postgres and would like some input about disaster recovery. I know in MsSQL they have a feature called transactional logs that would enable a database to be put back together based off those logs. Does Postgres do anything like this? I saw in the documentation transactional l

Re: [GENERAL] Humor me: Postgresql vs. MySql (esp. licensing) (OT)

2003-11-26 Thread Stephen Robert Norris
On Tue, 2003-11-25 at 16:58, Randolf Richardson wrote: > [sNip] > >> In summary, you could be charging them for some very expensive courier > >> services, if for which they don't pay then you won't deliver. =) > > > > Of course a competitor could purchase a copy or get it from a customer > > and

Re: [GENERAL] pam authentication for postgres

2003-11-26 Thread Jan Wieck
Jason, it seems you are unfamiliar with the basic rules of user support. If you try to filter as much as possible and only post the tiny snippets of information "you" think are important, the chances that someone else finds the point you overlooked are close to none. Please post a comprehensiv

Re: [GENERAL] Where is Postgesql ? - MYSQL SURPRISES WITH MAXDB /

2003-11-26 Thread Christopher Browne
Clinging to sanity, Randolf Richardson <[EMAIL PROTECTED]> mumbled into her beard: > Aside from that, I don't see how the individual actions of one > organization that has been charging for open source software can > possibly reflect on all those projects which are totally free It most certainly w

Re: [GENERAL] Where is Postgesql ? - MYSQL SURPRISES WITH MAXDB /

2003-11-26 Thread Randolf Richardson
>> Aside from that, I don't see how the individual actions of one >> organization that has been charging for open source software can >> possibly reflect on all those projects which are totally free > > It most certainly would, in InfoWeek, and other such "sources of > journalism" which happen to

Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-26 Thread Randolf Richardson
Cross-posted to "comp.databases.postgresql.advocacy" because PostgreSQL could be very helpful to MySQL DBAs who wish to optimize their databases -- just convert it to PostgreSQL on a test system and use EXPLAIN and ANALYZE to identify the weaknesses. Even if these MySQL DBAs don

[GENERAL] GnuPG / PGP signed MD5 and SHA1 checksums for PostgreSQL 7.4.0

2003-11-26 Thread greg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is a PGP-signed copy of the checksums for PostgreSQL version 7.4. The latest copy of the checksums for this and other versions, as well as information on how to verify the files you download for yourself, can be found at: http://www.gtsm

Re: [GENERAL] postgres metadata

2003-11-26 Thread greg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Is there something in Postgres that corresponds to the rowid > pseudocolumn in Oracle, which represents the unique address of the > row of data in the table? If so, how would you access that > in a query? > ... > so what do you have to do to cre

Re: [GENERAL] pam authentication for postgres

2003-11-26 Thread Jason Tesser
> Please post a comprehensive description of what you're trying to do > together with the configuration files you use. I thought I did that sorry. I am trying to get Postgres to authenticate through Pam so I can authenticate to Active Directory on our network. All the steps I took are posted b

Re: [GENERAL] disaster recovery

2003-11-26 Thread Alex Satrapa
Jason Tesser wrote: We are evaluating Postgres and would like some input about disaster recovery. I'm going to try to communicate what I understand, and other list members can correct me at their selected level of vehemence :) Please send corrections to the list - I may take days to post follow-up

Re: [GENERAL] disaster recovery

2003-11-26 Thread Doug McNaught
Alex Satrapa <[EMAIL PROTECTED]> writes: > 1) Under Linux, if you have the file system containing the WAL mounted > with asynchronous writes, "all bets are off". The *BSD crowd (that I > know of) take great pleasure in constantly reminding me that if the > power fails, my file system will be in an

[GENERAL] Happy Thanksgiving!

2003-11-26 Thread Joshua D. Drake
Happy Thanksgiving to everyone! Sincerely, Joshua D. Drake -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-667-4564 - [EMAIL PROTECTED] - http://www.commandprompt.com Mammoth PostgreSQL Replicato

Re: [GENERAL] SCSI vs. IDE performance test

2003-11-26 Thread Bruce Momjian
Ben wrote: > Base-two artihmetic sounds pretty broad. If only you could come up with a > scheme for division and multiplication by powers of two through > bitshifting. I already have that patent! :-) -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

Re: [GENERAL] postgres metadata

2003-11-26 Thread Tom Lane
[EMAIL PROTECTED] writes: > The problem is that the oid column has no "unique" constraint ... unless you add one, viz: create unique index mytable_oids on mytable (oid); which is de rigueur for any table you intend to rely on OID as an identifier for. The index is needed not only to ens

Re: [GENERAL] disaster recovery

2003-11-26 Thread Bruce Momjian
Alex Satrapa wrote: > Some caveats though: > 1) Under Linux, if you have the file system containing the WAL mounted > with asynchronous writes, "all bets are off". The *BSD crowd (that I > know of) take great pleasure in constantly reminding me that if the > power fails, my file system will be i

Re: [GENERAL] disaster recovery

2003-11-26 Thread Tom Lane
Doug McNaught <[EMAIL PROTECTED]> writes: > Alex Satrapa <[EMAIL PROTECTED]> writes: >> 1) Under Linux, if you have the file system containing the WAL mounted >> with asynchronous writes, "all bets are off". > ... > Even with ext2, WAL files are preallocated and PG calls fsync() after > writing, so

[GENERAL] Proposed project: Multimaster, synchronous replication system

2003-11-26 Thread Chris Travers
Hi All; I may be able to do this in Perl, but if there is enough interest in doing something like this in C, maybe I can still help (however, consider your self warned about my skill at coding C). I am looking at the following design. The clustering daemon either need to run on separate computer

PostgreSQL, MySQL, etc., was Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-26 Thread Chris Travers
Hi all;Since we are on the topic of what prompted us to use PostgreSQL, I figured Iwould share my experiences as well, and some additional thoughts that I had.I chose PostgreSQL about 2 years ago when I realized that the application Iwas building needed something more robust than MySQL.  I fo