Re: [GENERAL] updating a view

2006-12-15 Thread m . c . wilkins
ya'da man tom! applied the patch, rebuilt, and postgres doesn't crash anymore. fixed my syntax error, and all is working properly. phew, my first experience with sql thanks! matt On Thu, Dec 14, 2006 at 09:23:40PM -0500, Tom Lane wrote: > [EMAIL PROTECTED] writes: > > so maybe i'm using

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Brandon Aiken
You asked: "I'd appreciate a clean yes/no; From a Java application, throught PG in both directions, the same timestamp comes back that was handed to the JDBC driver so long as it's stored in a "timestamp without time zone" attribute, nomatter neither where on earth the insert/update originates, no

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > That said, nobody has yet assured me that when I give a timestamp I get it > back unmolested. Well, as far as the backend is concerned you do get it back unmolested (up to the limits of float roundoff error, if you use float timestamps): * unconditional

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Alvaro Herrera
Richard Troy wrote: > I'd appreciate a clean yes/no; From a Java application, throught PG in > both directions, the same timestamp comes back that was handed to the JDBC > driver so long as it's stored in a "timestamp without time zone" > attribute, nomatter neither where on earth the insert/upda

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
> Richard Troy <[EMAIL PROTECTED]> writes: > > See my post from a few minutes ago, but simply put, time/date is at least > > as challenging as money or multibyte character. And, simply put, the > > Postgres implementation of timezone is INSUFFICIENT. > > Really? We do all the things you have list

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > See my post from a few minutes ago, but simply put, time/date is at least > as challenging as money or multibyte character. And, simply put, the > Postgres implementation of timezone is INSUFFICIENT. Really? We do all the things you have listed, and more

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Martijn van Oosterhout
On Fri, Dec 15, 2006 at 12:10:24PM -0800, Richard Troy wrote: > > I think your fundamental error is in using timestamp without time zone > > in the database. Try with-time-zone if you want consistent results > > across clients in different zones. > > I sure hope there's no issue with using timest

[GENERAL] A major rewrite of the Postgres OLE DB Provider.

2006-12-15 Thread Jeremy Lea
rised queries to run, nor could I run multiple commands in one block (which I need for speed to load big chunks of data). So, I started hacking on the Provider, and ended up almost completely rewriting it. I have placed a copy at: http://people.freebsd.org/~reg/pgoledb-20061215.zip Things that i

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
On Wed, 13 Dec 2006, Richard Huxton wrote: > Randy Shelley wrote: > > I get different result if I query it from my workstation(US/Easter > > timezone) and from the server (GMT timezone). > > > A data type of timestamp without time zone should not do any > > conversions. The java.sql.Timestamp doe

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Tom Lane
Richard Troy <[EMAIL PROTECTED]> writes: > I'm not fully caught up with my Readings In Postgres, but this post caught > my eye and raised a concern... AFAIK, all the reasons you enumerate are good reasons to delegate the problem to a timestamp WITH time zone column. > First, you need at least min

Re: [GENERAL] TIMESTAMP WITHOUT TIME ZONE

2006-12-15 Thread Richard Troy
Hi Tom, Randy, et al, I'm not fully caught up with my Readings In Postgres, but this post caught my eye and raised a concern... Tom Lane <[EMAIL PROTECTED]> wrote: > "Randy Shelley" <[EMAIL PROTECTED]> writes: > > The java.sql.Timestamp does not store any timezone info, just nano seconds > > fro

Re: [GENERAL] FreeBSD shared memory settings

2006-12-15 Thread Bill Moran
In response to "Paul Khavkine" <[EMAIL PROTECTED]>: > > I have a bit of a peculiar situation. > > I have t move a PostgreSQL 7.3 installation from a freeBSD 4.8 to a FreeBSD > 6.1. > I have PG 7.3 installed in a single directory, have moved the directory from > one server to another. After instal

[GENERAL] temp tables and function performance

2006-12-15 Thread Anton Melser
Hi, I am trying to move up in the world with my sql and need to do the following... I have a subscribers table and I need to export to csv (semi-colon separated) certain fields - that is fine, but I also need to export a multi-select field from another table as one string (0 to n values separated

Re: [GENERAL] FreeBSD shared memory settings

2006-12-15 Thread Jeff Davis
On Fri, 2006-12-15 at 13:54 -0500, Paul Khavkine wrote: > IpcSemaphoreCreate: semget(key=5433001, num=17, 03600) failed: No > space left on device > > I have adjusted kernel settings for shared memory, but no go. > We have a native PG 8.1 on same machine (different port) working just > fine. > A

[GENERAL] FreeBSD shared memory settings

2006-12-15 Thread Paul Khavkine
Hi Guys. I have a bit of a peculiar situation. I have t move a PostgreSQL 7.3 installation from a freeBSD 4.8 to a FreeBSD 6.1. I have PG 7.3 installed in a single directory, have moved the directory from one server to another. After instaling all the compat 4x and 5x libraries everything seems

Re: [GENERAL] query on table name to return columns and data types?

2006-12-15 Thread Erik Jones
blackwater dev wrote: How can I run a query based on a table name and get the column names and data types returned? Thanks! Check out the columns view in the information_schema. -- erik jones <[EMAIL PROTECTED]> software development emma(r) ---(end of broadcast)-

Re: [GENERAL] query on table name to return columns and data types?

2006-12-15 Thread Joshua D. Drake
On Fri, 2006-12-15 at 12:26 -0500, blackwater dev wrote: > How can I run a query based on a table name and get the column names > and data types returned? Usually your language API will give you what you need for that. Sincerely, Joshua D. Drake > > Thanks! -- === The PostgreSQL Compa

[GENERAL] query on table name to return columns and data types?

2006-12-15 Thread blackwater dev
How can I run a query based on a table name and get the column names and data types returned? Thanks!

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Henrik Zagerholm
15 dec 2006 kl. 17:40 skrev Chris Browne: [EMAIL PROTECTED] (Tom Lane) writes: Henrik Zagerholm <[EMAIL PROTECTED]> writes: Postgres has been designed as a server, and lots of implementation details might not make sense in an embedded context. you might be better served by SQLite, or some othe

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Chris Browne
[EMAIL PROTECTED] (Tom Lane) writes: > Henrik Zagerholm <[EMAIL PROTECTED]> writes: >>> Postgres has been designed as a server, and lots of >>> implementation details might not make sense in an embedded >>> context. you might be better served by SQLite, or some other >>> such library. > >> ... It i

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Henrik Zagerholm
15 dec 2006 kl. 17:15 skrev Ragnar: On fös, 2006-12-15 at 16:59 +0100, Henrik Zagerholm wrote: I think I need to specify what I mean with embedded. Its not that we try to embed it into an application. It is just run from a flash disk and the datafiles are put on standard raid attached disks.

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Ragnar
On fös, 2006-12-15 at 16:59 +0100, Henrik Zagerholm wrote: > I think I need to specify what I mean with embedded. > Its not that we try to embed it into an application. > It is just run from a flash disk and the datafiles are put on > standard raid attached disks. > > Its an embedded device not

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Henrik Zagerholm
I think I need to specify what I mean with embedded. Its not that we try to embed it into an application. It is just run from a flash disk and the datafiles are put on standard raid attached disks. Its an embedded device not an embedded application. :) Cheers, Henrik 15 dec 2006 kl. 16:30 s

Re: [GENERAL] PostgreSQL doesn't accept connections when Windows

2006-12-15 Thread George Weaver
- Original Message From: "Thomas H.", etc. Thank you all for your replies and suggestions. I apologize for not replying earlier but the client is located several hours away and I have not been back to the site until yesterday. Here's an update of the situation (PostgreSQL 8.1.5 on Window

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Tom Lane
Henrik Zagerholm <[EMAIL PROTECTED]> writes: >> Postgres has been designed as a server, and lots of >> implementation details might not make sense in an embedded >> context. you might be better served by SQLite, or some other >> such library. > ... It is also quite crash resistant with the WAL imp

Re: [GENERAL] about the RULE system

2006-12-15 Thread Tom Lane
Rafal Pietrak <[EMAIL PROTECTED]> writes: > Looks like this thread have died away. No, it moved to the appropriate mailing list: http://archives.postgresql.org/pgsql-hackers/2006-12/msg00564.php regards, tom lane ---(end of broadcast)--

Re: [GENERAL] Performing backup from VB.NET

2006-12-15 Thread George Weaver
Original Message -From: "RPK" <[EMAIL PROTECTED]> I want to perform database backup (pgdump) from within VB.NET. Can it be done? I have an application developed using VB.NET that backs up the database every 12 hours using a small batch file containing both a vacuum and pg_dump backup script.

Re: [GENERAL] b-tree index performance

2006-12-15 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/06 07:50, Martijn van Oosterhout wrote: > On Fri, Dec 15, 2006 at 07:44:16AM -0600, Ron Johnson wrote: >>> The difference in performence will be determined by the cost of >>> comparison. The cost of comparing strings is much higher than for >>

Re: [GENERAL] b-tree index performance

2006-12-15 Thread Martijn van Oosterhout
On Fri, Dec 15, 2006 at 07:44:16AM -0600, Ron Johnson wrote: > > The difference in performence will be determined by the cost of > > comparison. The cost of comparing strings is much higher than for > > integers, so it will be slower. > > And comparing INT8 is more expensive on a 32-bit system. T

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Henrik Zagerholm
Thats true and we have. With the amount of data we need to handle and the queries we need to execute the postgresql database is way better suited for our needs. SQLite do not have the functions we need anyways. It is also quite crash resistant with the WAL implementation. We still create the

Re: [GENERAL] b-tree index performance

2006-12-15 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/06 05:41, Martijn van Oosterhout wrote: > On Fri, Dec 15, 2006 at 01:13:00PM +0200, Yonatan Ben-Nes wrote: >> Hi all, >> >> I was wondering does the b-tree index performance change when it's >> implemented on different data types fields? is it

[GENERAL] free space?

2006-12-15 Thread Greg Mitchell
Is there a way to see how free space is distributed across tables after running vacuum (without looking through the verbose output)? Thanks, Greg Automated Trading Desk, LLC (ATD) is the sole owner of Automated Trading Desk Brokerage Services, LLC (ATDB) and Automated Trading Desk Financial Ser

Re: [GENERAL] Needed files - embedded postgres

2006-12-15 Thread Ragnar
On fös, 2006-12-15 at 11:41 +0100, Henrik Zagerholm wrote: > Hello list, > I'm working on a project which tries to run postgre as a embedded > database. > > I'm know looking at start up scripts and initdb scripts. > > What are the necessary files for running initdb and running postgres > as a

Re: [GENERAL] b-tree index performance

2006-12-15 Thread Martijn van Oosterhout
On Fri, Dec 15, 2006 at 01:13:00PM +0200, Yonatan Ben-Nes wrote: > Hi all, > > I was wondering does the b-tree index performance change when it's > implemented on different data types fields? is it better to use one of them > instead of the other for (=) comparisons? > I'm especially interested be

[GENERAL] b-tree index performance

2006-12-15 Thread Yonatan Ben-Nes
Hi all, I was wondering does the b-tree index performance change when it's implemented on different data types fields? is it better to use one of them instead of the other for (=) comparisons? I'm especially interested between INT8 and TEXT data types. Thanks a lot in advance, Ben-Nes Yonatan

[GENERAL] Needed files - embedded postgres

2006-12-15 Thread Henrik Zagerholm
Hello list, I'm working on a project which tries to run postgre as a embedded database. I'm know looking at start up scripts and initdb scripts. What are the necessary files for running initdb and running postgres as an embedded database? All binary files and their deps are already fixed

Re: [GENERAL] a question for the way-back machine

2006-12-15 Thread Martijn van Oosterhout
On Fri, Dec 15, 2006 at 02:29:48PM +0530, Gurjeet Singh wrote: > Is it session level !!??? I think it is query level; don't we discard the > plan after each query? AFAIK, only the plpgsql and other pl/ sisters cache > the plan for the queries inside their code-blocks. I am under the impression > th

Re: [GENERAL] could not write to log -> PANIC -> System down

2006-12-15 Thread Magnus Hagander
On Fri, Dec 15, 2006 at 03:54:01AM -0500, Brandon Aiken wrote: > My understanding of VSS is that only one non-VSS aware app can access > the data at any one time. All I meant was that if their NetBackup > version was old that they probably cannot benefit from VSS since I doubt > the Win32 PG port

Re: [GENERAL] a question for the way-back machine

2006-12-15 Thread Gurjeet Singh
On 12/14/06, Martijn van Oosterhout wrote: On Thu, Dec 14, 2006 at 09:35:47AM -0800, Ben wrote: > Interesting. Is that plan cached for the life of the session doing the > inserts, the life of the trigger, or until the database is restarted? Duration of a session, there is no support to cache a

Re: [GENERAL] could not write to log -> PANIC -> System down

2006-12-15 Thread Brandon Aiken
My understanding of VSS is that only one non-VSS aware app can access the data at any one time. All I meant was that if their NetBackup version was old that they probably cannot benefit from VSS since I doubt the Win32 PG port knows about it either. Brandon Aiken -Original Message- From: