Re: [GENERAL] selfmade datatype in C and server-crash

2005-10-04 Thread Tom Lane
Markus Schulz <[EMAIL PROTECTED]> writes: > This works fine and then i've created the new Type like: > CREATE OR REPLACE FUNCTION etextin(cstring) > RETURNS etext AS > '$libdir/new_types.so', 'etextin' > LANGUAGE 'c' VOLATILE; > CREATE OR REPLACE FUNCTION etextout(etext) > RETURNS cstring A

Re: [GENERAL] Isolated transactions?

2005-10-04 Thread Michael Fuhr
On Tue, Oct 04, 2005 at 04:46:04PM -0400, Douglas McNaught wrote: > Lexington Luthor <[EMAIL PROTECTED]> writes: > > I have a number of large tables in a schema all of which are related > > by foreign keys. > > > > Now, what I would like to be able to do is run some long-running > > queries (mostly

Re: [GENERAL] a bug, the bugs list, and how to break the website

2005-10-04 Thread Robert Treat
On Tuesday 04 October 2005 19:13, Richard Huxton wrote: > Jeff MacDonald wrote: > > 2: On the support page beside pgsql-bugs, it tells us to post in the > > bug reporting form, AND signup for 2 mailing lists. I can't possibly > > see how this would encourage anyone to want to report a bug if they >

[GENERAL] New Point Releases Now Available

2005-10-04 Thread Marc G. Fournier
In order to address several issues identified since our last Point Releases, we have just released the following new versions of PostgreSQL: 7.3.11, 7.4.9 and 8.0.4. A few of the more prominent fixes across all three versions are: - Fix error that allowed "VACUUM" to remove ctid ch

Re: [GENERAL] a bug, the bugs list, and how to break the website

2005-10-04 Thread Richard Huxton
Jeff MacDonald wrote: Hi, I very rarely have reason to post to this list so I was reluctant to sign up for such heavy traffic, but I have a few things to bring up and they're all 'general' 1: Go to the website and type in "now()" into the search box, it will break Error in query: Unmatched pare

Re: [GENERAL] a bug, the bugs list, and how to break the website search.

2005-10-04 Thread Tom Lane
Jeff MacDonald <[EMAIL PROTECTED]> writes: > 1: Go to the website and type in "now()" into the search box, it will break > Error in query: Unmatched parenthesis > 2: On the support page beside pgsql-bugs, it tells us to post in the > bug reporting form, AND signup for 2 mailing lists. I can't poss

Re: [GENERAL] Avoiding evaluating functions twice.

2005-10-04 Thread Jim C. Nasby
> On Tuesday 04 October 2005 17:25, Tom Lane wrote: > > [EMAIL PROTECTED] writes: > > > select expensive_function(table) from table > > > where expensive_function(table) is not null; > > > > > > Is there a way to avoid that expensive_function is evaluated twice (if > > > it's n

Re: [GENERAL] License question

2005-10-04 Thread Matthew Terenzio
I had thought we were completely sunk until we moved everything over to .Net. Insert microsoft wisecrack of your choice here : ) ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Or selection on index versus union

2005-10-04 Thread han . holl
On Tuesday 04 October 2005 22:26, [EMAIL PROTECTED] wrote: > Just a guess but have you tried using an in clause? > > select something from table where fase in ('1' , '2'); > Not surprisingly, this also does a sequential scan on the table. (It would be _very_ diffcult to see that this is a union,

Re: [GENERAL] Or selection on index versus union

2005-10-04 Thread Michael Fuhr
On Tue, Oct 04, 2005 at 09:32:41PM +0200, [EMAIL PROTECTED] wrote: > I've got a table with an index, let's call it fase. > > The following query is fine: 'select something from table where fase = '1'; > > However, this is disastrously slow: > select something from table where fase = '1' or fase

Re: [GENERAL] Isolated transactions?

2005-10-04 Thread Douglas McNaught
Lexington Luthor <[EMAIL PROTECTED]> writes: > Hi, > > I have a number of large tables in a schema all of which are related > by foreign keys. > > Now, what I would like to be able to do is run some long-running > queries (mostly selects, but also some updates and inserts into the > tables), to ge

Re: [GENERAL] License question[VASCL:A1077160A86]

2005-10-04 Thread Aaron Glenn
On 10/4/05, Welty, Richard <[EMAIL PROTECTED]> wrote: > Aaron Glenn wrote: > >Completely incorrect. You can do whatever you like with PostgreSQL; > >you just can't sue anyone when things go south. > > _and_ you need to preserve the copyright notices. excellent point. ---(e

Re: [GENERAL] License question

2005-10-04 Thread Aaron Smith
I never imagined that I would get so many responses. Thanks for all the great information! This really cleared it up for us. It looks like I will take a good long look at postgresql and see how well I can make it interface into our product. This was extremely good news for me... I had thought w

Re: [GENERAL] Advice on development environment for veritical product[VASCL:A105BF1C720]

2005-10-04 Thread Steve Atkins
On Tue, Oct 04, 2005 at 02:14:28PM -0400, Richmond Dyes wrote: > I am looking to build a commercial application with postgresql as the > backend database. Besides using php for a web interface, what other > development environment would developers advice to use to make a good > secure windows

Re: [GENERAL] Or selection on index versus union

2005-10-04 Thread kevin . kempter
Just a guess but have you tried using an in clause? select something from table where fase in ('1' , '2'); On Tuesday 04 October 2005 13:32, [EMAIL PROTECTED] wrote: > Hello > > I've got a table with an index, let's call it fase. > > The following query is fine: 'select something from table w

Re: [GENERAL] License question[VASCL:A1077160A86]

2005-10-04 Thread Joshua D. Drake
Richmond Dyes wrote: From my understanding of the license for Postgresql, there is no licensing fees as long as you are not selling it yourself for a profit. This is incorrect. Please see the other messages on this thread. The product you are thinking of is MySQL. Sincerely, Joshua D. Drak

Re: [GENERAL] License question[VASCL:A1077160A86]

2005-10-04 Thread Welty, Richard
Aaron Glenn wrote: >On 10/4/05, Richmond Dyes <[EMAIL PROTECTED]> wrote: >> From my understanding of the license for Postgresql, there is no >> licensing fees as long as you are not selling it yourself for a profit. >Completely incorrect. You can do whatever you like with PostgreSQL; >you just

Fw: [GENERAL] License question

2005-10-04 Thread Richard_D_Levine
Aaron, If you are new to free software, it is best to familiarize yourself with the different types of licenses, and especially with the concept of copyleft: http://www.fsf.org/fsf/licensing BSD, LGPL, and GPL are all very different animals, and representative of many of the licenses used in FOS

[GENERAL] selfmade datatype in C and server-crash

2005-10-04 Thread Markus Schulz
Hello, i'm trying to develop a selfmade pg-datatype derived from type text (at first) with postgresql 7.4.7. At first i have taken the original code from textin and textout ($SRC/backend/utils/adt/varlena.c) and compiled them renamed to etextin and etextout into new .so file. This works fine and

Re: [GENERAL] License question

2005-10-04 Thread Magnus Hagander
> This brings me here. I have heard of PostGreSQL, so it's not > new to me. > But all this licensing is. And maybe you can help get some > clarification for the MySQL licensing too. > > We will not be selling the database software. We may install > it for them, though. In fact, most of the t

[GENERAL] Or selection on index versus union

2005-10-04 Thread han . holl
Hello I've got a table with an index, let's call it fase. The following query is fine: 'select something from table where fase = '1'; However, this is disastrously slow: select something from table where fase = '1' or fase = '2'; The reason is that the query planner decides to ignore the inde

Re: [GENERAL] License question

2005-10-04 Thread Stefan 'Kaishakunin' Schumacher
Also sprach Aaron Smith ([EMAIL PROTECTED]) [License questions] PostgreSQL is released under BSD License. This license say (informal, IANAL) Do whatever you want with the code, but keep the author's acknowledgements. BSD licensed software is quite often incorporated into commercial products, li

[GENERAL] a bug, the bugs list, and how to break the website search.

2005-10-04 Thread Jeff MacDonald
Hi, I very rarely have reason to post to this list so I was reluctant to sign up for such heavy traffic, but I have a few things to bring up and they're all 'general' 1: Go to the website and type in "now()" into the search box, it will break Error in query: Unmatched parenthesis 2: On the suppo

Re: [GENERAL] License question[VASCL:A1077160A86]

2005-10-04 Thread Aaron Glenn
On 10/4/05, Richmond Dyes <[EMAIL PROTECTED]> wrote: > From my understanding of the license for Postgresql, there is no > licensing fees as long as you are not selling it yourself for a profit. Completely incorrect. You can do whatever you like with PostgreSQL; you just can't sue anyone when thin

Re: [GENERAL] License question[VASCL:A1077160A86]

2005-10-04 Thread Richmond Dyes
From my understanding of the license for Postgresql, there is no licensing fees as long as you are not selling it yourself for a profit. There are also free platforms to build your application on. I am myself exploring the use of Centos with php, postgresql, apache with ssl running as a secur

Re: [GENERAL] License question

2005-10-04 Thread Arthur Hoogervorst
Hi, >You can close source it, you can sell it, you can rename it. Add to that: As long as you leave the copyrights notices alone... Isn't that what the BSD license is particularly about? [but then, I might be wrong there] Regards, Arthur ---(end of broadcast)-

Re: [GENERAL] License question

2005-10-04 Thread Scott Marlowe
On Tue, 2005-10-04 at 09:49, Aaron Smith wrote: SNIP > We will not be selling the database software. We may install it for > them, though. In fact, most of the time, we will be the ones to install > it, and we charge for that time. Our customers are very aware that we > did not write it, nor a

Re: [GENERAL] License question

2005-10-04 Thread Dann Corbit
[snip] > Knowing all this, what do we need to purchase, what can we do and what > can't we do? It's hard getting a straight answer from anyone that is why > I am here. If we can't do it, we won't. If we can save our customers > some money while getting them really good options and software, we woul

Re: [GENERAL] License question[VASCL:A1077F0DBCA]

2005-10-04 Thread Richmond Dyes
Joshua D. Drake wrote: This brings me here. I have heard of PostGreSQL, so it’s not new to me. But all this licensing is. And maybe you can help get some clarification for the MySQL licensing too. You can do anything you want with PostgreSQL. You can close source it, you c

Re: [GENERAL] Avoiding evaluating functions twice.

2005-10-04 Thread han . holl
On Tuesday 04 October 2005 17:25, Tom Lane wrote: > [EMAIL PROTECTED] writes: > > select expensive_function(table) from table > > where expensive_function(table) is not null; > > > > Is there a way to avoid that expensive_function is evaluated twice (if > > it's not null) ? > >

Re: [GENERAL] License question

2005-10-04 Thread Arthur Hoogervorst
Hi, If I'm not wrong, Postgres comes with a BSD license, which means that it (literally) doesn't matter what you do with the sources or how you link your applications to the Postgres libraries. Pervasive goes into details here: http://www.pervasivepostgres.com/postgresql/mysql.asp. Regards, Ar

[GENERAL] optimizing common subqueries

2005-10-04 Thread Kevin Murphy
My understanding is that PG does not eliminate common subqueries within complex queries. I just wanted to confirm this. I also tried wrapping subqueries in STABLE or IMMUTABLE functions returning SETOF, but from the PG 8.0.3 log, I see that the function is invoked redundantly anyway. I know

Re: [GENERAL] License question

2005-10-04 Thread Joshua D. Drake
> This brings me here. I have heard of PostGreSQL, so it’s not new to me. > But all this licensing is. And maybe you can help get some clarification > for the MySQL licensing too. > You can do anything you want with PostgreSQL. You can close source it, you can sell it, you can rename it. You

[GENERAL] Isolated transactions?

2005-10-04 Thread Lexington Luthor
Hi, I have a number of large tables in a schema all of which are related by foreign keys. Now, what I would like to be able to do is run some long-running queries (mostly selects, but also some updates and inserts into the tables), to generate some reports which will eventually be rolled-bac

[GENERAL] License question

2005-10-04 Thread Aaron Smith
I did a quick search on the mailing list and didn’t really find my answer, so I am posting it to this list… I’d like to apologize for my lack in understanding all this license stuff. I am not an open source developer, I am a commercial developer, so this is the first time I have even looked to

Re: [GENERAL] Advice on development environment for veritical

2005-10-04 Thread Joshua D. Drake
On Tue, 2005-10-04 at 14:14 -0400, Richmond Dyes wrote: > I am looking to build a commercial application with postgresql as the > backend database. Besides using php for a web interface, what other > development environment would developers advice to use to make a good > secure windows frontend

[GENERAL] Advice on development environment for veritical product[VASCL:A105BF1C720]

2005-10-04 Thread Richmond Dyes
I am looking to build a commercial application with postgresql as the backend database. Besides using php for a web interface, what other development environment would developers advice to use to make a good secure windows frontend with postgresql running either Windows or Linux? ---

Re: [GENERAL] [INTERFACES] how to monitor dead connections to postgresql database

2005-10-04 Thread Jim C. Nasby
On Tue, Oct 04, 2005 at 06:21:51AM -0700, jing han wrote: > Hello, > > After 6 days busy running, one of my process dead of > cannot connect to database, and the log message shows > that exceeding max_connections. The max_connections = > 30. > > By running watch -d "ps ax |grep postgres" I only f

Re: [GENERAL] export a select result in a file ?

2005-10-04 Thread Scott Marlowe
On Tue, 2005-10-04 at 07:00, ctobini wrote: > Hello, > > I don't find in the PostgreSQL doc how to export a select result in a > text file. If you want to get the data without being IN psql (like in an automated script) you can use the -tc switches ("t"uples only, run this "c"ommand): psql dbnam

Re: [GENERAL] strip zeros from fractional part

2005-10-04 Thread Sven Willenberger
On Mon, 2005-10-03 at 16:36 -0300, Giovanni M. wrote: > Yes! That did it, thanks for the help > > On 10/3/05, Tony Wasson <[EMAIL PROTECTED]> wrote: > > On 10/3/05, Giovanni M. <[EMAIL PROTECTED]> wrote: > > > Round and trunc dont provide the functionality I need. > > > > > > Say for example I hav

Re: [GENERAL] Avoiding evaluating functions twice.

2005-10-04 Thread Tom Lane
[EMAIL PROTECTED] writes: > select expensive_function(table) from table > where expensive_function(table) is not null; > Is there a way to avoid that expensive_function is evaluated twice (if it's > not null) ? You can do something like this: select f from (select expensi

Re: [GENERAL] export a select result in a file ?

2005-10-04 Thread A. Kretschmer
am 04.10.2005, um 5:00:16 -0700 mailte ctobini folgendes: > Hello, > > I don't find in the PostgreSQL doc how to export a select result in a > text file. > > Thanks if you can help me. You can use \o in psql to redirect the result to a file. \o out.file Regards, Andreas -- Andreas Kretschm

[GENERAL] SQLService on Win XP

2005-10-04 Thread Sebastian Iglesias
Please forgive me if this is not the right mailing list to post this message at.   I'm trying to run PostgreSQL 8.0 on a Win XP notebook. Right after the instalation, it works fine. But after turning the computer off and on again I can´t get the service to run. The error message I get says that the

[GENERAL] need help on setting up pgsql

2005-10-04 Thread ozgur . ulku
Hi guys, I need some help on setting up pgsql 8.0 on windows xp. I know that this must be a basic task but somehow I couldn't figure out how to get it work. I did setup pgsql correctly in that I can have access to pgAdmin III console, but when i try to setup a new server, even though I uncheck the

Re: [GENERAL] Redhat 9 RPM dependency problem

2005-10-04 Thread han . holl
On Friday 30 September 2005 17:48, Devrim GUNDUZ wrote: > Sorry for the late response. > > On my RH 9 box, I've rebuilt our SRPM and here is the result: > > [EMAIL PROTECTED] SRPMS]# cat /etc/redhat-release > Red Hat Linux release 9 (Shrike) > [EMAIL PROTECTED] SRPMS]# rpm -qp --requires > /usr/src

[GENERAL] export a select result in a file ?

2005-10-04 Thread ctobini
Hello, I don't find in the PostgreSQL doc how to export a select result in a text file. Thanks if you can help me. C. Tobini ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] Avoiding evaluating functions twice.

2005-10-04 Thread han . holl
Hello, I've got the following situation: select expensive_function(table) from table where expensive_function(table) is not null; Is there a way to avoid that expensive_function is evaluated twice (if it's not null) ? I've tried stuff like immutable, but that doesn't do

Re: [GENERAL] Maximum # of schemas

2005-10-04 Thread Jim C. Nasby
On Sun, Oct 02, 2005 at 11:27:29AM -0400, Tom Lane wrote: > Steve Manes <[EMAIL PROTECTED]> writes: > > Questions: is there a hard limit to the number of schemas you could have > > in a database? > > No. > > > Are there any caveats/pitfalls/pitbulls to having a > > large number of duplicate sch

Re: [GENERAL] [ODBC] Unbound text box, Text > 255 characters, MSAccess/PostgreSQL

2005-10-04 Thread Greg Campbell
What version of Access? Confirm that Access is interpreting the target field as MEMO, (either look at the linked table in design mode, or use Tools->Analyze->Documenter). For the query, determine the "type" of the parameter - Query menu->Parameters. Be sure you are using type MEMO. By the way,

Re: [GENERAL] Get all table names that have a specific column

2005-10-04 Thread Jim C. Nasby
Easy way: SELECT table_name FROM information_schema.columns WHERE column_name = '' or SELECT table_name FROM pg_sysviews.pg_user_table_columns WHERE column_name = '' If those don't work, select from pg_attribute a join pg_class c on (c.oid = a.reloid) On Fri, Sep 30, 2005 at 10:55:44AM -0400, Emi

Re: [GENERAL] mysql hash table equivalent?

2005-10-04 Thread Douglas McNaught
Tom Lane <[EMAIL PROTECTED]> writes: > "Chris St Denis" <[EMAIL PROTECTED]> writes: >> Does postgres support in-memory only tables like the mysql HASH table type? > > No, and it doesn't seem particularly necessary: a table that is being > hit heavily will stay in cache buffers anyhow. You don't n

Re: [GENERAL] Integration with MS Sql Server

2005-10-04 Thread Sean Davis
On 10/3/05 7:41 PM, "J B" <[EMAIL PROTECTED]> wrote: > On 10/3/05, Dann Corbit <[EMAIL PROTECTED]> wrote: >> Using SQL*Server, and OLEDB or ODBC data source can be connected as a >> linked server. Then, TSQL queries can go against PostgreSQL tables as >> though they were ordinary SQL*Server table

[GENERAL] Unbound text box, Text > 255 characters, MSAccess/PostgreSQL

2005-10-04 Thread Zlatko Matić
Hello. I have the following problem with MS Access/PostgreSQL combination: There is a form in Access that has an unbound text box, used for entering a commentary of a batch of records. There is a DAO Append Query that has a parameter that is passed from the text box using parameter of DAO Que

Re: [GENERAL] Casting numeric values to double

2005-10-04 Thread Daniel Schregenberger
On Mon, 2005-10-03 at 17:44 +0200, Martijn van Oosterhout wrote: > On Mon, Oct 03, 2005 at 03:31:42PM +0200, Daniel Schregenberger wrote: > > I recently stumbled uppon the following thing: > > If I compare a field of type "numeric" to a small decimal constant like > > "3.6", the constant is interpr