[GENERAL] EXECUTE in PLPGSQL

2001-03-01 Thread Wade D. Oberpriller
Is the EXECUTE command supported in v 7.0.3 or is that new in 7.1? Wade Oberpriller

[GENERAL] pg_ctl bug

2001-01-24 Thread Wade D. Oberpriller
Hello, I've noticed a bug if pg_ctl. If you do the following: pg_ctl -w -D $PGSQL/data -o '-p 1' start; The pg_ctl script will loop doing a 'psql -l' to connect to the postmaster process on port 5432 (but postmaster is using 1 in this case). The pg_ctl script should take the port number

[GENERAL] libpq++

2001-01-22 Thread Wade D. Oberpriller
Hello, I am using PostgreSQL v7.0.2. I compiled myself with gcc/g++ v2.7.2.2 on Solaris 2.5.1. In libpq++, I get compiler warnings complaining that namespaces are mostly broken in this version of g++. When I attempt to run a piece of client code that was linked with libpq++.so, I get a symbol re

[GENERAL] Waiting for postmaster to be completely started

2001-01-16 Thread Wade D. Oberpriller
Hello, I have a script with the following code: $(PGSQL)/bin/pg_ctl -D $(PGSQL)/data start ;\ $(PGSQL)/bin/createlang -L $(PGSQL)/lib plpgsql template1 Sometimes I get an error from createlang, and it appears that postmaster has not completely been started and is not ready to ac

[GENERAL] initdb on build machine and moving to production machine

2001-01-11 Thread Wade D. Oberpriller
Hello, I want to be able to do an initdb on a build machine and then copy this new database to a production machine and run with it. One thing I have noticed is that initdb needs an absolute path, so if I copy the database it needs to reside in an identical location as where it was initialized.

Re: [GENERAL] check constraint

2000-12-18 Thread Wade D. Oberpriller
You should be able to do the following: CREATE TABLE table1 ( field1 INTEGER CHECK ((field1 >= 0) AND (field1 <= 10)) ); Wade Oberpriller > > Hi, > how should I write a constraint that can keep an INT field with values > between 0 and 10? Do I have to use two checks on the same field? >

Re: [GENERAL] Increasing Table Column Size in 7.0 Syntax

2000-11-01 Thread Wade D. Oberpriller
This requires you to change NAMEDATALEN in src/include/postgres_ext.h. Note this requires a recompile, initdb, createdb, etc. Also note that databases with different NAMEDATALEN's can't interoperate. Wade > > Hello, > > Looking at the docs for pgsql I have only found stuff on altering a table

Re: [GENERAL] Alternate locations of DB's (fwd)

2000-10-26 Thread Wade D. Oberpriller
623 for <[EMAIL PROTECTED]>; Thu, 26 Oct 2000 15:49:38 -0400 Message-ID: <001901c03f85$79a17ac0$330a0a0a@6014cwpza006> From: "Adam Lang" <[EMAIL PROTECTED]> To: "Wade D. Oberpriller" <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Subject:

Re: [GENERAL] Alternate locations of DB's

2000-10-26 Thread Wade D. Oberpriller
You must use initlocation to initialize the location and have the path to the location in an environment variable before postmaster is started. For example: > setenv PGDATA2 /home/someuser/data > initlocation 'PGDATA2' > pg_ctl -D /home/pgsql/data start > createdb mydb -D 'PGDATA2' This will st

[GENERAL] PL/PGSQL documentation

2000-10-17 Thread Wade D. Oberpriller
Hello all, I posted this query a while ago, but I might have missed the response, so here goes again. Is there any good documentation on the PL/PGSQL language? Like the complete grammar and syntax? I have read the user's and programmer's manuals and all they include is a few examples (hardly eno

[GENERAL] executing user-defined functions

2000-10-04 Thread Wade D. Oberpriller
Hello all, I was wondering if PostgreSQL protects itself when executing user-defined functions? Or does it go under the assumption that all user-defined functions will NOT crash (if they do you have a serious problem and need to fix the function)? We are building an app where we want 3rd partie

[GENERAL] Checking number of entries

2000-09-28 Thread Wade D. Oberpriller
Hello, Is it possible to restrict the number of entries in a table? I have attempted to write a check like so: CREATE TABLE mytable ( id integer NOT NULL, CHECK (COUNT(id) <= 10) ); This is not allowed, I get an error saying: ERROR: Exec

[GENERAL] Increasing max size of tuples?

2000-09-26 Thread Wade D. Oberpriller
Can the max size of the tuples be enlarged, currently they are 8128 bytes ( I believe). Is there a macro or option that can be set to increase this? I have a table with quite a few constraints (and the field names are large also), and the tuple size is being exceeded, and the table can't be crea

Re: [GENERAL] Problems buidling PostgreSQL v7.0.2 on Solaris 2.5.1

2000-09-15 Thread Wade D. Oberpriller
That was it! Thanks alot. Wade Oberpriller StorageTek [EMAIL PROTECTED] > > [EMAIL PROTECTED] (Wade D. Oberpriller) writes: > > Once I attempt to install, I get errors that look like: > > > gmake[2]: Entering directory >`/home/anubis22/oberpwd/postgresql-7.0.2/src/b

Re: [GENERAL] Problems buidling PostgreSQL v7.0.2 on Solaris 2.5.1

2000-09-15 Thread Wade D. Oberpriller
> > [EMAIL PROTECTED] (Wade D. Oberpriller) writes: > > Once I attempt to install, I get errors that look like: > > > gmake[2]: Entering directory >`/home/anubis22/oberpwd/postgresql-7.0.2/src/backend/access' > > gmake -C common postgres/usr/X11R6 > >