[GENERAL] Re: 'Tuple is too big' Error

2001-01-14 Thread J.H.M. Dassen (Ray)
On Thu, Jan 11, 2001 at 20:06:33 +0100, Christian Pomar wrote: > Using phorum (www.phorum.org) based on PHP, I am getting the following > error when trying to insert a message in the PosgreSQL 6.5.3 database: > > ProcessQuery > ERROR: Tuple is too big: size 12440 There is an 8K tuple length in

[GENERAL] Re: getting number of rows updated within a procedure

2001-01-14 Thread J.H.M. Dassen (Ray)
On Sun, Jan 14, 2001 at 23:27:06 +1300, Dan Langille wrote: > I'm writing some stuff in PL/pgsql (actually, a lot of stuff). I have a > question: At various times, it does UPDATEs. Is there a way to tell if > the UPDATE actually affected any rows or not? I couldn't see how to get > UPDATE to re

Re: [GENERAL] createdb fails in 7.0.2

2001-01-14 Thread Tom Lane
Konstantinos Agouros <[EMAIL PROTECTED]> writes: > I just tried to create another database, and all I get is a > pqReadData() -- backend closed the channel unexpectedly. > This probably means the backend terminated abnormally > before or while processing the request. > connection

[GENERAL] createdb fails in 7.0.2

2001-01-14 Thread Konstantinos Agouros
Hi, I just tried to create another database, and all I get is a pqReadData() -- backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while processing the request. connection to server was lost createdb: database creation failed

[GENERAL] Re: A pg_dump error.

2001-01-14 Thread Dan Langille
On 12 Jan 2001, at 10:51, hedy Xu wrote: > We are using the postgres7 against Linux. We got a pg_dump error when tired > to backup a database using pg_dump. The error message is “PQgetvalue: ERROR! > tuple number 0 is out of range 0..-1 Segmentation fault“. We could dump this > database when it w

Re: [GENERAL] Backend doesn't like this query...

2001-01-14 Thread Tom Lane
[EMAIL PROTECTED] (Brad Crockett) writes: > I'm using V6.4.2 on RedHat Mandrake 6.0, 6.4.2 is ancient history --- we've fixed a lot of subselect bugs since then. Please update to the current release, 7.0.3. If you still see the problem with 7.0.3, please submit a complete script to reproduce th

[GENERAL] Backend doesn't like this query...

2001-01-14 Thread Brad Crockett
Hi, all. I'm using V6.4.2 on RedHat Mandrake 6.0, and when I run the following query, the backend says: pqReadData() -- backend closed the channel unexpectedly Here is the culprit: SELECT Sno FROM Take WHERE Cno = 'CS112' AND Cno NOT IN (SELECT Sno FROM Take

Re: [GENERAL] Newbie question

2001-01-14 Thread Anand Raman
what do u mean by the datadir problem.. if pg_ctl asks for a datadir then ucan set it in /etc/profile and start again.. Hope this helps Anand On Mon, Jan 08, 2001 at 03:44:34PM +0100, MUMCU, Burak wrote: > >Hi all, > >I'm using Suse Linux 7.0 and I have installed PostgreSQL. The problem is >when

Re: [GENERAL] Does PostgreSQL support Dynamic SQL?

2001-01-14 Thread Tom Lane
Mike Mascari <[EMAIL PROTECTED]> writes: > Its an extension to the embedded SQL preprocessor which allows you to > dynamically build queries at run-time, instead of compile-time. > [...] > you can *dynamically* build a SELECT statement, ask the database for a > description of the result sets' at

RE: [GENERAL] Does PostgreSQL support Dynamic SQL?

2001-01-14 Thread Mike Mascari
Its an extension to the embedded SQL preprocessor which allows you to dynamically build queries at run-time, instead of compile-time. So instead of having to declare the variables associated with query results at comile-time, like: EXEC SQL BEGIN DECLARE SECTION; VARCHAR userid[30];

Re: [GENERAL] VB and PostgreSQL

2001-01-14 Thread Chris Ian Capon Fiel
try to go to this url http://208.160.255.143 there is a odbc and a easy to install postgresql for win32 On 11 Jan 2001, tony wrote: > I have an windows sistem. > 1.It's possible to install PostgreSQL on Windows? > 2.May I use PostODBC or OpenL

[GENERAL] Re: stale portmaster processes

2001-01-14 Thread Thomas T. Thai
On Sun, 14 Jan 2001, Peter Eisentraut wrote: > Thomas T. Thai writes: > > > i've noticed that when using php scripts or the "c" cgi search.cgi from > > mnogosearch, if i access either script from the web browser and stop it > > with ESC in the middle of it trying to access the pgsql db, the asso

Re: [GENERAL] Creating a database

2001-01-14 Thread Ben Stringer
Tom Lane wrote: > > Richard Francis Duggan <[EMAIL PROTECTED]> writes: > > I am trying to create a database and use the following command: > > 'createdb ' > > However I get the following error: > > ERROR: CREATE DATABASE: could not initialize database directory > > createdb: database creation fa

Re: [GENERAL] Can't compare decimal columns???

2001-01-14 Thread Brett W. McCoy
On Sun, 14 Jan 2001, Stephan Szabo wrote: > I believe there was discussion about these things on -hackers a while > back. The type promotion and which type a constant is seen as is kind of > wierd right now. The query will probably work with explicit typecast to > numeric for the constants. Ye

Re: [GENERAL] Creating a database

2001-01-14 Thread Tom Lane
Richard Francis Duggan <[EMAIL PROTECTED]> writes: > I am trying to create a database and use the following command: > 'createdb ' > However I get the following error: > ERROR: CREATE DATABASE: could not initialize database directory > createdb: database creation failed Hm. That

Re: [GENERAL] Does PostgreSQL support Dynamic SQL?

2001-01-14 Thread The Hermit Hacker
Stupid question, but what is Dynamic SQL? :) On Sun, 14 Jan 2001, Lark wrote: > Hi all! > 2 questions: > Does PostgreSQL support dynamic SQL, if so, when can i see any documents on > it at PostgreSQL.org? > thank's :) > > > Marc G. Fournier ICQ#7615664 IRC Nick

Re: [GENERAL] mnogosearch -- pgsql seem so slow, please help me findout why

2001-01-14 Thread The Hermit Hacker
On Thu, 11 Jan 2001, Thomas T. Thai wrote: > pgsql 7.1-current, mnogosearch-3.1.8, netbsd/alpha-1.5.1-current, dec > alpha 500, 1G ram, uw-scsi > > i'm trying to find out why postgres is the bottle neck in my searches with > mnogosearch. i've tried both the search.c and php version of search and

Re: [GENERAL] Can't compare decimal columns???

2001-01-14 Thread Stephan Szabo
On Sun, 14 Jan 2001, Brett W. McCoy wrote: > Why isn't there a >= or <= operator defined for floating point datatypes? > > As an example: > > bmccoy=> select * from account where balance between 20.00 and 99.00; > ERROR: Unable to identify an operator '>=' for types 'numeric' and 'float8' >

Re: [GENERAL] Re: starting PGSQL automatically on Redhat 6.2

2001-01-14 Thread Mike Castle
On Wed, Jan 10, 2001 at 12:17:23PM -, Ryan Mahoney wrote: > I'm actaully trying to get 7.1b to start automatically, still no success, > but I'm making progres. > > Trying to modify the pg_ctl that comes with 7.1 to add the su - postgres -c I added the following to the postgres account's .pro

[GENERAL] Re: converting .xls to delimited file

2001-01-14 Thread Bruno Wolff III
On Thu, Jan 11, 2001 at 12:13:34AM +0200, Martin Lillepuu <[EMAIL PROTECTED]> wrote: > William Staniewicz wrote: > > > > Is there any way to convert an Excel file (".xls") > > to a delimited file? Maybe using sed? > > search for xls2csv on freshmeat. it works for simpler excel files but > tend

[GENERAL] Documentation

2001-01-14 Thread Harold Brock
Title: Documentation Could you please send any information on Postgresql for optimizing queries.  I have tables of 1million plus rows and would like to know some optimizing techniques. Thanks Harold P. Brock Medical Informatics 248-593-3804

[GENERAL] Re: [HACKERS] How to print explain using PHP

2001-01-14 Thread Karel Zak
On Tue, 9 Jan 2001, Bruce Momjian wrote: > I think the issue here was that these functions don't make any sense for > PHP because you can't register C functions. I mean (I know) that you can register some common (internal) PHP function and this function can call your PHP function. It is some u

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Bruce Momjian
> Bruce Momjian writes: > > > I believe debug adds some addition checks in the code, and that is why > > he is seeing slowness with debug. It was not the -g flag he used but > > --enable-debug. I just looked at configure.in, and saw the > > --enable-debug enables assert checking. > > I don't t

Re: [GENERAL] Re: performance hit with --enable-debug

2001-01-14 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> BTW, it appears to me that configure won't even add the -g unless it >> thinks the compiler is gcc ... ie, --enable-debug is a no-op on non-gcc >> compilers. Peter, isn't that a bug? > In case you're referring to > if test "$ena

Re: [GENERAL] Re: performance hit with --enable-debug

2001-01-14 Thread Peter Eisentraut
Tom Lane writes: > BTW, it appears to me that configure won't even add the -g unless it > thinks the compiler is gcc ... ie, --enable-debug is a no-op on non-gcc > compilers. Peter, isn't that a bug? In case you're referring to if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; th

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Peter Eisentraut
Bruce Momjian writes: > I believe debug adds some addition checks in the code, and that is why > he is seeing slowness with debug. It was not the -g flag he used but > --enable-debug. I just looked at configure.in, and saw the > --enable-debug enables assert checking. I don't think so. -- Pe

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > >> The effect in terms of query execution speed is probably minimal. The > >> problem is that the executables get about 15% larger, which can lead to > >> longer load times, more memory usage, and ultimately to some speed issues. > > > Not sure about

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> The effect in terms of query execution speed is probably minimal. The >> problem is that the executables get about 15% larger, which can lead to >> longer load times, more memory usage, and ultimately to some speed issues. > Not sure about the longer

Re: [GENERAL] Re: performance hit with --enable-debug

2001-01-14 Thread Tom Lane
"Thomas T. Thai" <[EMAIL PROTECTED]> writes: > figure out so i check my ./configure flags. and there it was > --enable-debug. after sending my email to the list, i recompiled w/o debug > and now i can get my results back from a query in less than 2 > seconds. before it was 59 secs if it returned a

Re: [GENERAL] Re: performance hit with --enable-debug

2001-01-14 Thread Bruce Momjian
> i'm running mnogosearch along with pgsql-current. and performance have > been just terrible to get results back on a resonable time. i couldn't > figure out so i check my ./configure flags. and there it was > --enable-debug. after sending my email to the list, i recompiled w/o debug > and now i

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Bruce Momjian
> Thomas T. Thai writes: > > > what kind of performance hit would i endure if i compiled with > > --enable-debug on -current > > The effect in terms of query execution speed is probably minimal. The > problem is that the executables get about 15% larger, which can lead to > longer load times, m

[GENERAL] Re: performance hit with --enable-debug

2001-01-14 Thread Thomas T. Thai
On Sun, 14 Jan 2001, Peter Eisentraut wrote: > Thomas T. Thai writes: > > > what kind of performance hit would i endure if i compiled with > > --enable-debug on -current > > The effect in terms of query execution speed is probably minimal. The > problem is that the executables get about 15% la

Re: [GENERAL] to_char(date '2001-04-01', 'dd') results in 31 -- why?

2001-01-14 Thread Tom Lane
Fred Yankowski <[EMAIL PROTECTED]> writes: > In PostgreSQL 7.0.3 (on NT), the expression > to_char(date '2001-04-01', 'dd') > evaluates to '31', which is a bit surprising. It's just a bug: date to timestamp conversion did the wrong thing on DST forward transition days in 7.0.3 and before.

Re: [GENERAL] fatal error - different CATALOG_VERSION_NO

2001-01-14 Thread Tom Lane
>> $ Waiting for postmaster to start up...FATAL 2: database was initialized >> with CATALOG_VERSION_NO >> 200012280, >> but the backend was compiled with CATALOG_VERSION_NO 200101061. >> looks like you need to initdb. >> do i have to follow the upgrade procedures? > Yes If you're trying to sto

[GENERAL] to_char(date '2001-04-01', 'dd') results in 31 -- why?

2001-01-14 Thread Fred Yankowski
In PostgreSQL 7.0.3 (on NT), the expression to_char(date '2001-04-01', 'dd') evaluates to '31', which is a bit surprising. But to_char(timestamp '2001-04-01', 'dd') evaluates to '01' as I would expect. Doing a bit of RTFM, it looks like the various "Date/Time Functions" actua

[GENERAL] Table Creation on the Fly

2001-01-14 Thread Brian C. Doyle
Hello all, Is it at all possible to create a table on the fly from a CSV file?

[GENERAL] Re: Re: [ADMIN] ODBC connect in ERWin

2001-01-14 Thread rob
I'm going to ask the obvious, but . . . Can you ping the Unix box from the ER workstation? Did you start the postmaster with -i to allow remote connections? Does the same ODBC DSN work from another program? (i.e. linking a Pg table to an Access DB) --rob - Original Message - From:

Re: [GENERAL] stupid select question...

2001-01-14 Thread Oliver Elphick
Konstantinos Agouros wrote: > >Hi, > >my sql has gotten a little rusty, here's what I want to do: >I have two tables both contain urls. How what I want are all the entries in >table b where there is no matching url in table a. I do remember doing somet >hing >like this with a

Re: [GENERAL] update field table.....

2001-01-14 Thread Oliver Elphick
"Muhammad Rusydi" wrote: >i want to update some of my field on table... > >sem period > > 3 2000/2001 > and i want it will be updated automatically to be. > >sem period >---

Re: [GENERAL] performance hit with --enable-debug

2001-01-14 Thread Peter Eisentraut
Thomas T. Thai writes: > what kind of performance hit would i endure if i compiled with > --enable-debug on -current The effect in terms of query execution speed is probably minimal. The problem is that the executables get about 15% larger, which can lead to longer load times, more memory usage

[GENERAL] stupid select question...

2001-01-14 Thread Konstantinos Agouros
Hi, my sql has gotten a little rusty, here's what I want to do: I have two tables both contain urls. How what I want are all the entries in table b where there is no matching url in table a. I do remember doing something like this with a select url from table1 where a.url not in select url from

Re: [GENERAL] fatal error - different CATALOG_VERSION_NO

2001-01-14 Thread Peter Eisentraut
Thomas T. Thai writes: > $ Waiting for postmaster to start up...FATAL 2: database was initialized > with CATALOG_VERSION_NO > 200012280, > but the backend was compiled with CATALOG_VERSION_NO 200101061. > looks like you need to initdb. > do i have to follow the upgrade procedur

[GENERAL] getting number of rows updated within a procedure

2001-01-14 Thread Dan Langille
I'm writing a procedure and I want to check the number of rows updated. But I can't figure out how. I know UPDATE returns "UPDATE #" but I don't know how to use that to get what I need. Here's an example: CREATE FUNCTION "test" () RETURNS int AS ' DECLARE v_number_of_rows int;