Re: [GENERAL] table configuration tweak for performance gain.

2004-11-15 Thread Michael Fuhr
On Tue, Nov 16, 2004 at 10:39:10AM +1100, Harvey, Allan AC wrote: > mill2=> explain select value from history where pointname = 'MILL2-SPEED' and > dt < now() - interval '5 minutes'\g We were looking for the output from "explain analyze select " With EXPLAIN ANALYZE we can see how realistic

Re: [GENERAL] Schemas?

2004-11-15 Thread Peter Eisentraut
Bjørn T Johansen wrote: > When does using schemas make sense? Is it more effective or is it > just to make a database more manageable? They are just a logical hierarchy that allows you to organize your databases in more or less manageable ways. There is no performance or other physical benefit.

Re: [GENERAL] How the function written on pl/pgsql can be called by the function written on plperl.

2004-11-15 Thread Anatoly Okishev
Anatoly Okishev wrote: How the function written on pl/pgsql can be called by the function written on plperl. Error is: error from function: Undefined subroutine &Safe::Root2::get_national_code called. You probably need to be calling "SELECT get_national_code(...)" to access it via a standard q

Re: [GENERAL] Last value inserted

2004-11-15 Thread Jerry III
Which means that sometimes they do not return the correct value - if you have a trigger that inserts another record you will not get the right value. MSSQL has @@IDENTITY and SCOPE_IDENTITY() to handle this case, I'm new to pgsql so I don't know if it has anything like that. Jerry "Richard Hux

Re: [GENERAL] simple query question: return latest

2004-11-15 Thread Jerry III
SELECT "date" FROM "table" WHERE "color" = 'red' ORDER BY "date" DESC LIMIT 1; Don't worry about names, just quote your identifiers. They will stand out and you can use anything you want. Jerry "Michael Glaesemann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott, > > On No

Re: [GENERAL] PostgreSQL on Guest Host (VMWare)

2004-11-15 Thread Jan Wieck
On 11/15/2004 5:05 PM, ON.KG wrote: Hi! Description: VMware 4.0 Main host is WinXP Pro (on FAT32) and Guest Host is WinXP Pro (on NTFS) I hope you're running the guest with fully preallocated virtual disks. Any FAT inconsistency caused by a system crash could destroy your entire guest otherwise.

Re: [GENERAL] table configuration tweak for performance gain.

2004-11-15 Thread Harvey, Allan AC
Tom, Michael, Thanks for your interests. My original post was scant on detail as I was unsure if I had found the right place. It appears I have, so... Version is 7.4.5 Table size these tests were carried out on:- mill2=> select count(*) from history\g count 258606 (1 row) Before in

[GENERAL] Schemas?

2004-11-15 Thread Bjørn T Johansen
When does using schemas make sense? Is it more effective or is it just to make a database more manageable? Regards, BTJ -- --- Bjørn T Johansen [EMAIL PROTECTED] ---

[GENERAL] Preventing connections during vacuum and reindex

2004-11-15 Thread CSN
I run these commands automatically every night: vacuumdb -a -z -U postgres reindexdb -a -U postgres Is there a way to temporarily disable all other connections to Postgres until these operations are complete? The operations take a while (about 20 minutes) and connections really pile up, sometimes

Re: [GENERAL] 24x7x365 high-volume ops ideas

2004-11-15 Thread Chris Browne
[EMAIL PROTECTED] (Karim Nassar) writes: > On Sun, 2004-11-07 at 21:16, Christopher Browne wrote: >> None of these systems _directly_ address how apps would get pointed to >> the shifting servers. > >> Something needs to be "smart enough" to point apps to the right place; >> that's something to th

Re: [GENERAL] "q" with psql display paging dumps out of psql

2004-11-15 Thread Jim Seymour
Tom Lane <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] (Jim Seymour) writes: > > I recently upgraded from 7.4.2 to 7.4.6 and have run into a new > > problem. As frequently as not, maybe even most times, when I "q" out > > of paging the output of a query in psql: Instead of just quitting that >

[GENERAL] Oracle versus PostgreSQL

2004-11-15 Thread Nadeem Bitar
I've searched unsuccessfully on google and the archives for a technical comparison of Oracle and PostgreSQL. Is there any free and recent comparison that covers more than just the basic differences. Thanks, Nadeem signature.asc Description: This is a digitally signed message part

Re: [GENERAL] PostgreSQL on Guest Host (VMWare)

2004-11-15 Thread Estienne van Velzen
Have you configured postgresql to work with tcp/ip ? http://www.postgresql.org/docs/current/static/postmaster-start.html Succes Estienne ON.KG wrote: Hi! Description: VMware 4.0 Main host is WinXP Pro (on FAT32) and Guest Host is WinXP Pro (on NTFS) On Guest Host - PostgreSQL 8.0-beta2-dev3 From Ma

Re: [GENERAL] PostgreSQL on Guest Host (VMWare)

2004-11-15 Thread Goutam Paruchuri
Give the IP Address of your connecting client in the pg_hda.conf file and restart postgres. Thanks ! - goutam > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of ON.KG > Sent: Monday, November 15, 2004 5:06 PM > To: [EMAIL PROTECTED] > Subject: [GENER

[GENERAL] PostgreSQL on Guest Host (VMWare)

2004-11-15 Thread ON.KG
Hi! Description: VMware 4.0 Main host is WinXP Pro (on FAT32) and Guest Host is WinXP Pro (on NTFS) On Guest Host - PostgreSQL 8.0-beta2-dev3 From Main host i'm trying to connect to PostgreSQL to Guest host But as a result i'm receiving next message: Connection Refused (0x274D/10061) Is the

Re: [GENERAL] PostGreSQL to Access Updatable recordset

2004-11-15 Thread Goutam Paruchuri
Try this, Set conn = New ADODB.Connection Conn.open "DNS=SAP_PG;uid=postgres" Set rsE = Conn.Execute(updateSQL) Where updateSQL is your update statement. Check permissions for updates/write for the user you are connecting. - Goutam > -Original Message- > From: [EMAIL PROTECTED] > [m

Re: [GENERAL] "q" with psql display paging dumps out of psql

2004-11-15 Thread Geoffrey
Peter Eisentraut wrote: Jim Seymour wrote: "echo $?" after it happens yields "141." There is no "141" in /usr/include/sys/errno.h. Exit code 141 means signal 141 - 128 = 13 = SIGPIPE. I haven't finished thinking what that means in this case, though ... I would expect it means the pipe between t

Re: [GENERAL] "q" with psql display paging dumps out of psql

2004-11-15 Thread Tom Lane
[EMAIL PROTECTED] (Jim Seymour) writes: > I recently upgraded from 7.4.2 to 7.4.6 and have run into a new > problem. As frequently as not, maybe even most times, when I "q" out > of paging the output of a query in psql: Instead of just quitting that > query, I get dumped straight out of psql. To

Re: [GENERAL] Nairobi time zone fails in 7.4

2004-11-15 Thread Karl O. Pinc
On 2004.11.15 10:42 Tom Lane wrote: "Karl O. Pinc" <[EMAIL PROTECTED]> writes: > In 7.3 I was able to do: > ALTER DATABASE babase SET "TimeZone" TO 'Nairobi'; > a nice Posix TZ value (FYI UTC+3 w. no daylight savings time). I think the usual spelling for this zone name is 'Africa/Nairobi'. Certainl

Re: [GENERAL] Nairobi time zone fails in 7.4

2004-11-15 Thread Tom Lane
"Karl O. Pinc" <[EMAIL PROTECTED]> writes: > In 7.3 I was able to do: > ALTER DATABASE babase SET "TimeZone" TO 'Nairobi'; > a nice Posix TZ value (FYI UTC+3 w. no daylight savings time). > In 7.4 this no longer works. I don't believe it worked in 7.3 either, but before 7.4 we didn't really detec

Re: [GENERAL] "q" with psql display paging dumps out of psql

2004-11-15 Thread Peter Eisentraut
Jim Seymour wrote: > "echo $?" after it happens yields "141." There is no "141" in > /usr/include/sys/errno.h. Exit code 141 means signal 141 - 128 = 13 = SIGPIPE. I haven't finished thinking what that means in this case, though ... -- Peter Eisentraut http://developer.postgresql.org/~petere/

Re: [GENERAL] I'm sure a good time was had by many...

2004-11-15 Thread Richard_D_Levine
Mark, There is a net.kkkOOk trying to disrupt our list with scatology. A good time is not being had by any. The kkkOOk is spoofing email headers to look like valid users. We can do little but ignore the juvenile. Rick

[GENERAL] "q" with psql display paging dumps out of psql

2004-11-15 Thread Jim Seymour
Hi, Environment: SunOS 5.7 Generic_106541-29 sun4u sparc SUNW,UltraSPARC-IIi-Engine Postgresql-7.4.6 Build config: --with-java --enable-thread-safety gcc version 3.3.1 less-381 readline-4.3 $ echo $PAGER /usr/local/bin/less $ echo $LESS -e I recently

[GENERAL] Nairobi time zone fails in 7.4

2004-11-15 Thread Karl O. Pinc
Hi, In 7.3 I was able to do: ALTER DATABASE babase SET "TimeZone" TO 'Nairobi'; a nice Posix TZ value (FYI UTC+3 w. no daylight savings time). In 7.4 this no longer works. I see some UTC+3 time zones in the 7.4 docs, but how am I to know that they correspond to Kenyan time, especially with respect

[GENERAL] I'm sure a good time was had by many...

2004-11-15 Thread Taber, Mark
Title: I'm sure a good time was had by many... A cathartic time, to be sure.  However, could we at least limit the scatology to the *body* of the messages?  It's very difficult explaining to one's boss as he looks over your shoulder that yes, indeed, this *is* a serious support list.   Thanks.

Re: [GENERAL] table configuration tweak for performance gain.

2004-11-15 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > On Mon, Nov 15, 2004 at 04:25:59PM +1100, Harvey, Allan AC wrote: >> I created an index on the dt column, ran ANALYSE then, >> EXPLAIN for some queries. >> The returned plan was always sequential search. > Could you post a query and the EXPLAIN ANALYZE ou

[GENERAL] relations betwee subclasses in postgersql

2004-11-15 Thread Dino Vliet
Hi all, I'm using postgresql 7.4.2 and could not create relationships between subclases. I hava a EER model where the superclass Person has subclasses like Customers. When I try to create a relationship between Customers and other relations the database won't let me. Is that correct and if so, whe

Re: [GENERAL] Visual Studio and Postgresql

2004-11-15 Thread Daron
Thank you very much, that is exactly what I was looking for. Daron Ryan. -Original Message- From: Richard Huxton [mailto:[EMAIL PROTECTED] Sent: Monday, 15 November 2004 8:05 PM To: Daron Cc: [EMAIL PROTECTED] Subject: Re: [GENERAL] Visual Studio and Postgresql Daron wrote: > Hi, > >

Re: [GENERAL] Question about indexes

2004-11-15 Thread Dawid Kuroczko
On Mon, 15 Nov 2004 11:38:29 +0100, Stefano Bonnin <[EMAIL PROTECTED]> wrote: > > Only a simple question > > I have a table with > > primarykey(field1,field2,field3) > > and I want to execure a query like > > select * from my_table where field1 = some_value > > if I define an index on f

Re: [GENERAL] OID

2004-11-15 Thread Martijn van Oosterhout
Firstly, please don't send email in only HTML, it tends to get them marked as spam. > SPAM: Hit! (3.2 points) HTML-only mail, with no text version Anyway, as to your question: > Im planning on using OID for referencing in certain part of the > system i am building as in this case using normal p

[GENERAL] Question about indexes

2004-11-15 Thread Stefano Bonnin
Only a simple question   I have a table with       primarykey(field1,field2,field3)   and I want to execure a query like           select * from my_table where field1 = some_value   if I define an index on field1, I increase the query performace or not?   Thanks

Re: [GENERAL] suggestion for "psql"

2004-11-15 Thread Richard Huxton
Holger Klawitter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I haven't found a way to set the client encoding of a psql connection other then "\encoding" which is arkward for batch processing. As .psqlrc is being ignored during batch processing and the internal encoding is bein

Re: [GENERAL] Visual Studio and Postgresql

2004-11-15 Thread Richard Huxton
Daron wrote: Hi, Can anyone suggest any websites that might help with connecting visual studio dot net (I would like to see it running using server explorer if possible) to postgresql. I am planning to write some client applications in VB or C#. Best place to start is with the .Net data provid

Re: [GENERAL] ask a question

2004-11-15 Thread Richard Huxton
suon wrote: > pgsql-general I am a new user for pgsql.I has a question is, does > pgsql(7.5 for win32) has a jdbc or a odbc ? If have ,how can i take > it ? thank for your replying. There is no 7.5 - version 8.0 is in beta-testing though. There are links for jdbc/odbc on the homepage of http://ww

Re: [GENERAL] How the function written on pl/pgsql can be called

2004-11-15 Thread Richard Huxton
Anatoly Okishev wrote: How the function written on pl/pgsql can be called by the function written on plperl. Error is: error from function: Undefined subroutine &Safe::Root2::get_national_code called. You probably need to be calling "SELECT get_national_code(...)" to access it via a standard q

Re: [GENERAL] suggestion for "psql"

2004-11-15 Thread Peter Eisentraut
Holger Klawitter wrote: > Shouldn't psql honour the current locale setting (LC_CTYPE) or/and > have a command line option to set the encoding? The environment variable PGCLIENTENCODING serves this purpose. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---

[GENERAL] suggestion for "psql"

2004-11-15 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I haven't found a way to set the client encoding of a psql connection other then "\encoding" which is arkward for batch processing. As .psqlrc is being ignored during batch processing and the internal encoding is being set *after* "-v", I