Re: [GENERAL] undefined symbol: SPI_plan_get_cached_plan

2013-02-11 Thread Roger Niederland
On 2/11/2013 6:47 AM, Tom Lane wrote: Roger Niederland writes: I am getting the following error when trying to execute a plpgsql funtion: PSTERROR: could not load library "/usr/pgsql-9.2/lib/plpgsql.so": /usr/pgsql-9.2/lib/plpgsql.so: undefined symbol: SPI_plan_get_cached_plan Th

[GENERAL] undefined symbol: SPI_plan_get_cached_plan

2013-02-11 Thread Roger Niederland
I am getting the following error when trying to execute a plpgsql funtion: PSTERROR: could not load library "/usr/pgsql-9.2/lib/plpgsql.so": /usr/pgsql-9.2/lib/plpgsql.so: undefined symbol: SPI_plan_get_cached_plan This is on a SL6.3 system running postgres 9.2.2 We set this server up about

[GENERAL] variable not found in subplan target list

2011-11-02 Thread Roger Niederland
Hello, I stripped down the original query to what is below. I am not saying that the query below is useful except to show an error I am getting in Postgresql 9.1.1 on both SL6.1 (64 bit) and Windows 2008 server 9.1.1 (32-bit and 64-bit). The error I am getting is: ERROR: variable not found

Re: [GENERAL] variable not found in subplan target list

2011-11-01 Thread Roger Niederland
On 11/1/2011 8:30 PM, Tom Lane wrote: Roger Niederland writes: I extracted the tables from the database which generates the error above I eliminated most of the columns such that this query still exhibits this behavior to reduce the file size. I have a zipped file from windows postgresql

Re: [GENERAL] variable not found in subplan target list

2011-11-01 Thread Roger Niederland
On 11/1/2011 3:54 PM, Roger Niederland wrote: Hello, I stripped down the original query to what is below. I am not saying that the query below is useful except to show an error I am getting in Postgresql 9.1.1 on both SL6.1 (64 bit) and Windows 2008 server 9.1.1 (32-bit and 64-bit). The

[GENERAL] variable not found in subplan target list

2011-11-01 Thread Roger Niederland
Hello, I stripped down the original query to what is below. I am not saying that the query below is useful except to show an error I am getting in Postgresql 9.1.1 on both SL6.1 (64 bit) and Windows 2008 server 9.1.1 (32-bit and 64-bit). The error I am getting is: ERROR: variable not found

[GENERAL] Create Extension search path

2011-09-28 Thread Roger Niederland
On my windows install of postgres 9.1.0. I have a search_path set in the config file. This search path has several schemas defined. Some of the databases within postgres, do not have the schema specified on the search path defined within the database. Trying to add pgcryto via: CREATE EXTENS

Re: [GENERAL] pg_dump compress

2011-09-24 Thread Roger Niederland
On 9/23/2011 5:18 PM, Adrian Klaver wrote: On Friday, September 23, 2011 7:26:19 am Roger Niederland wrote: On 9/23/2011 6:46 AM, hubert depesz lubaczewski wrote: On Thu, Sep 22, 2011 at 11:00:10PM -0700, Roger Niederland wrote: Using pg_dump from the command line with the exe included in

Re: [GENERAL] pg_dump compress

2011-09-23 Thread Roger Niederland
On 9/23/2011 6:46 AM, hubert depesz lubaczewski wrote: On Thu, Sep 22, 2011 at 11:00:10PM -0700, Roger Niederland wrote: Using pg_dump from the command line with the exe included in windows 32 bit install in postgresql 9.1. pg_dump -U username -f somefile.sql.gz -Z 9 -i dbname please note

[GENERAL] pg_dump compress

2011-09-23 Thread Roger Niederland
Using pg_dump from the command line with the exe included in windows 32 bit install in postgresql 9.1. pg_dump -U username -f somefile.sql.gz -Z 9 -i dbname outputs a file that is in plain text. In previous versions of postgresql, this output a gzipped file. Also tried: pg_dump -U username

Re: [GENERAL] Postgres 8.4 literal escaping

2009-07-11 Thread Niederland
On Jul 9, 2:18 pm, t...@sss.pgh.pa.us (Tom Lane) wrote: > Niederland writes: > > SQL 2: select ('A' || '\r\n' || 'B') as tt from customer limit 1 > > Functions without escaping literal > > Really?  I get > > regression=# select (&#x

[GENERAL] Postgres 8.4 literal escaping

2009-07-09 Thread Niederland
with Postgres 8.4: SQL 1: update customer set note = ('A' || '\r\n' || 'B') where 1=0; generates: WARNING: nonstandard use of escape in a string literal LINE 1: update customer set note = ('A' || '\r\n' || 'B') where 1=0; ^ HINT: Use the escape string

[GENERAL] exit code 128

2009-04-07 Thread Niederland
Today I postgres on one of our servers shutdown with exit code 128. Postgresql 8.3.7 on Windows 2003 server. It started up normally but this is the second occurance this week. Below is a section of the log. A restart of the service returned postgres to normal. Suggestions? Thanks, Roger 2009-0

[GENERAL] Re: Win32 8.3.3 install fail (sufficient privileges to install system services).

2008-06-13 Thread Niederland
I have found in most instances if you leave the services window open the installer will fail to install (or upgrade) the postgres service. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] postgresql 8.3rc1 on vista

2008-01-28 Thread Niederland
Yes I checked the file permissions... In fact I logged in as the user specified in the service and started postgres via the command line with postgres -D ../data and the postgres.conf parameters were loaded as confirmed with a "show all" in psql And still running postgresql from the service does n

Re: [GENERAL] postgresql 8.3rc1 on vista

2008-01-20 Thread Niederland
Here's more information: It appears that the postgresql.conf file is not being used... executing a show all; from psql I see that the parameters are using the default values and not paying attention to the settings in the postgresql.conf file. The config_file has a value of c:/program files/Post

[GENERAL] postgresql 8.3rc1 on vista

2008-01-20 Thread Niederland
On my laptop which I use for development (Windows VISTA), I tried Postgresql 8.3 RC1. I ran into one problem... It seems that either the service is not finding the postgresql.conf file or not paying attention to the search_path within it. This worked in all the previous 8.2.x, 8.1.x I've used. I

Re: [GENERAL] postgresql 8.3rc1 on vista

2008-01-20 Thread Niederland
This seems to be an installer bug for VISTA If I run postgres via the command prompt with: postgres -D ../data then the postgres.conf file is loaded as confirmed with a show all in psql If I start postgres via the service which is installed with installer the postgres.conf file values are not loa

[GENERAL] Delete Performance question

2007-07-03 Thread Niederland
I did an analyize and tried to delete 50 rows from the 1.5M table and it took over 120 seconds. Deleting 100 rows took nearly twice as long. An explain of the delete query showed that indexes were being used. I found that changing the variable enable_seqscan = off and restarting the database, del

Re: [GENERAL] Mass Update

2007-04-23 Thread Niederland
On Apr 23, 4:25 am, Iain Adams <[EMAIL PROTECTED]> wrote: > Hi, > > This is probably a really easy question but I have been toiling with > this SQL for ages. > Okay I have a table with geom_id and id in, this table is called temp. > I also have another table called junctions with a column, old_id.

[GENERAL] ORDER BY with UNION

2007-04-11 Thread Niederland
Using Postgresql 8.2.3 The following query functions correctly: select lastname as name from person where lastname ='Smith' union select firstname as name from person where firstname = 'John' order by name; --- The followi

[GENERAL] vacuum in standalone mode

2006-12-03 Thread Niederland
This is a windows installation postgresql 8.5.1 trying to start postgresql provides the following: 2006-12-03 08:58:11 LOG: database system was shut down at 2006-12-02 11:01:55 Mountain Standard Time 2006-12-03 08:58:11 LOG: checkpoint record is at 13/173572B0 2006-12-03 08:58:11 LOG: redo rec

Re: [GENERAL] Aggregate in Correlated SubQuery

2006-10-15 Thread Niederland
Sorry working to late at night Query works just a typo the following works. WHERE Lead.CreationDate = (SELECT MIN(LL.CreationDate) FROM Lead AS LL WHERE LL.ProspectID = Lead.ProspectID) sorry for the previous post, Roger Niederland wrote: > Before postgresql 8.1.5, I could do

[GENERAL] Aggregate in Correlated SubQuery

2006-10-15 Thread Niederland
Before postgresql 8.1.5, I could do the following to find the first lead that created a prospect in my application. SELECT Lead.LeadID, Prospect.ProspectID FROM Prospect INNER JOIN Lead USING (ProspectID) WHERE Lead.CreationDate = (SELECT MIN(Lead.CreationDate) FROM Lead AS LL WHERE LL.Pro

[GENERAL] Create Index on Date portion of timestamp

2006-10-13 Thread Niederland
I am using postgresql 8.1.4. Is there anyway to create an index equivalent to: CREATE INDEX i1 ON t1 USING btree (ts::Date); So that indexes are used for queries when the field is cast to a date. ---(end of broadcast)--- TIP 4: Have you searched

[GENERAL] update with subquery - unexpected results

2006-02-05 Thread Niederland
I am using postgres 8.1.2 on a windows computer. My postgres.config has: add_missing_from = off In the following example, the first update sets value for v1 in table t1 to 4 for all rows. Just for my sanity, I checked the null condition in the second update, and this does not update any of the row

Re: [GENERAL] postgresql.conf - add_missing_from

2005-02-02 Thread Niederland
Yes I removed the comment... Tail end of postgresql.conf.. #--- # VERSION/PLATFORM COMPATIBILITY #--- # - Previous Postgres Versions - # do not all

[GENERAL] postgresql.conf - add_missing_from

2005-01-25 Thread Niederland
postgres does not seem to pick up the following parameter in the postgresql.conf add_missing_from = false Setting the parameter via psql, functions properly SET add_missing_from TO FALSE Using: winxp, Postges 8.0 (note: I did restart the service after updating the parameters in postgresql.conf)

Re: [GENERAL] pg_restore

2005-01-25 Thread Niederland
That worked thanks. Just can not use the "> DBFile" on windows. ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] pg_restore

2005-01-20 Thread Niederland
I am having the same problem: System: the released Postgres 8.0, winXP Install performed an initDB. Tryed all types of backup/restore combinations, see below: Using: pg_dump --format=t --blobs myDB > DBFile pg_restore --create -dbname=crm DBFile Resulted in: pg_restore: [archiver] unsupported ve

Re: [GENERAL] pg_restore

2005-01-20 Thread Niederland
More Info: If I perform a backup of my database with PGAdmin3. I can restore the database via the command line pg_restore. It seems as if the backup created with pg_restore when issued from a winXP command prompt does not create a file that the pg_restore can read... At least for the file types C

[GENERAL] constraint expression

2004-08-08 Thread Roger Niederland
Hello, I am having problems adding a simple expression to a table level constraint. Here is an example of one which postgresql 7.4.3 does not accept. create table test (a int, b int, c int, constraint aname check (((a=0) and (b is not null)) or ((a=1) and (c is not null))); Should this work? I