[ADMIN] Unclosed connections

2008-01-25 Thread PostgreSQL Admin
We are using this bad piece of the software that does not close connections to the postgres server. Is there some setting for closing dead connections? And not TCP/IP keep alive does not work. ---(end of broadcast)--- TIP 6: explain analyze is yo

Re: [ADMIN] how to create a limited user

2008-01-22 Thread PostgreSQL Admin
Did you even look for the information on postgresql.org? http://www.postgresql.org/docs/8.2/interactive/sql-createuser.html ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [ADMIN] deinstallation - reinstallation on Mac OS 10.4

2007-07-26 Thread PostgreSQL Admin
I hate to sound like a --- but did you read the README on starting the server? You start the server by using the postmaster command: /path/to/postmaster -D /path/to/data look at the postgresql manual - it's all there. J ---(end of broadcast)-

Re: [ADMIN] deinstallation - reinstallation on Mac OS 10.4

2007-07-24 Thread PostgreSQL Admin
run this in the command line locate postmaster.pid or find / -name "postmaster.pid" -print that should locate any postmaster files and then remove whatever looks like the postmaster.pif file ---(end of broadcast)--- TIP 2: Don't 'kill -9' the po

[ADMIN] pgmemcache

2007-07-18 Thread PostgreSQL Admin
As anyone used pgmemcache? I would like to look more into a but I'm having problems installing the sql. I'm on OS X 10.4 and the sql there are lines causing errors: (e.g. AS '$libdir/pgmemcache', 'memcache_server_add' LANGUAGE 'C' STRICT;) thanks for any input and also will version 1.2 come

[ADMIN] UTF8 characters

2006-07-21 Thread PostgreSQL Admin
I had my database set to SQL_ASCII and switched to UTF8, but now I notice that I must add a slash for periods/dots ( \. vs . ) to insert into varchar. Is this normal? Thanks, J ---(end of broadcast)--- TIP 5: don't forget to increase your free spa

Re: [SQL] [ADMIN] plpgsql question

2005-08-30 Thread Postgres Admin
I have data in one table called articles and I would like to make a function in which takes certain data from it and display the results. Example: CREATE TABLE articles ( article_id serial, title varchar(200), posted timestamp, article_subject varchar(200), article_body text, allow_comments boole

[ADMIN] plpgsql question

2005-08-30 Thread Postgres Admin
Can I do something like this: CREATE TABLE sample (id SERIAL, node INTEGER, parent INTEGER); INSERT INTO sample(node,parent) VALUES(1,0); INSERT INTO sample(node,parent) VALUES(2,0); INSERT INTO sample(node,parent) VALUES(3,1); INSERT INTO sample(node,parent) VALUES(4,3) CREATE OR REPLACE FUNCTIO

[ADMIN] Data insert

2005-08-20 Thread Postgres Admin
Sorry for the attachment, but copying and pasting this data does not work. I don't have any idea how to insert the type of data into PostgreSQL. Basically, it's encrypted data in which I would like that keep raw format. Thanks for any help, J sample_data.pdf Description: Adobe PDF document --

Re: [ADMIN] $_SERVER['SERVER_ADDR'] ; returns wrong value "::1"

2005-06-16 Thread Postgres Admin
::1 is a function of the PHP $_SERVER[''] internal function, not a PostgreSQL problem. It will display ::1 on any database, you program a PHP custom function to call the whole IP address. The real question is that a problem in a production environment? Of note, outside IP addresses will display fi

[ADMIN] PostgreSQL and Delphi 6

2005-06-15 Thread Postgres Admin
I have a client who wants to use Delphi as a front end to a Database, I would like to use PostgreSQL over MSSQL and have been looking at the psqlodbc project. Will psqlodbc connect with Delphi 6? Basically, I'm wondering if anyone has experience with it? Any help will be appreciated. Thanks, J

[ADMIN] ACT! and PostgreSQL

2005-05-12 Thread Postgres Admin
I have some clients that are looking to upgrade to MSSQL Server because they use ACT!. I'm developing a web application for them that uses PostgreSQL. Does anyone know if ACT! can use PostgreSQL? or if I can hack it? Suggestion welcome and Thanks, J ---(end of broadcas

[ADMIN] PostgreSQL 8.0.x on Windows XPe

2005-04-27 Thread pgsql-admin
Hello, Has anyone tried using PostgreSQL 8.0.x on Windows XPe? I tried installing and it failed on the "Initialise database cluster" step saying that it could not open the "Secondary Logon service". The message indicated that the specified service does not exist as an installed service. The prob

Re: [ADMIN] help!!!!!!

2005-03-08 Thread Postgres Admin
You're php install isn't finding the postgresql libs it needs. When you do the ./configure --with-pgsql check the output of the config run, and you'll see something like: checking for PostgreSQL support... no You may want to set include flags when compiling CPPFLAGS=-I/usr/local/pgsql/inc

[ADMIN] upgrading 7.4.2 to 7.4.7

2005-03-07 Thread admin
Hello list, I just want to upgrade from 7.4.2 to 7.4.7 on Fedora Core 1. Is it safe to simply download the 7.4.7 rpms and then install/upgrade them with: rpm -U postgresql-7.4.7.rpm Kind Regards, Devin ---(end of broadcast)--- TIP 1: subscribe and

Re: [ADMIN] problems with pg_dump and pg_restore

2004-10-07 Thread admin
> pg_restore -U admin -C -d staging /home/postgres/staging-dump pg_restore: [archiver (db)] could not execute query: ERROR: database "staging" already exists -C tells it to create (and then connect to) the target DB, rather than connect to an existing DB and restore into that.

[ADMIN] problems with pg_dump and pg_restore

2004-10-07 Thread admin
on the backup DB box. btw, these are both running version 7.4.2. Here's the command I am issuing on the primary DB server: pg_dump -U admin staging -Fc -b -f /home/postgres/staging-dump And, it seems to work - creating a 20MB archive that has some readable text in it near the top, and a bun

[ADMIN] postgresql not using enough memory?

2004-05-19 Thread admin
Hello list, I know this is a complicated issue, but I'll throw it out there... Our DB box has 3GB of ram - which is supposed to be used by postgres. Whenever I use top, it only shows about 800MB being used with 2.2GB free. What can I do to tell postgres to use more of that memory - maybe 2GB ? I

[ADMIN] postgresql.conf file and logging questions

2004-03-27 Thread admin
Hello list, 1. Where should the postgresql.conf file be to be recognized by the service on startup? currently, it is inside my $PGDATA directory but all of its contents are commented out. 2. I can't find any log files for postgres. Inside my /var/log/ directory, there is an empty file call

[ADMIN] Configure complaints: Installed libs/apps not found

2003-09-13 Thread Roberson, Dusty (L:ops Unix Admin)
I am trying to install postgres 7.3.4 on my B180L HPUX workstation. I am having some problems getting the configure script to complete properly. It actually finished once or twice(not how I would like the configs) but then the make failed. The config errors are in the attached text document, and t

[ADMIN] Du nouveau sur la toile

2002-07-15 Thread admin
bonjour, juste un petit mail pour vous informer qu'il y a du 'nouveau' sur le web: LE RETOUR DU GRATUIT ! http://www.chouab.com/ vous propose: - Une mail-liste gratuite, - Un monitoring serveur gratuit, - une regie publicitaire gratuite, - un memo-mail gratuit ... Le site vous propose aussi u

Re: [ADMIN] Problems getting rserv working properly

2001-09-21 Thread pgsql-admin
[EMAIL PROTECTED] writes: >Hello: > >I am trying to get rserv working, so that I can do replication between a >master and a slave DB. I seem to be getting an error when I attempt >replication: > > ./Replicate testmaster testslave > > > ERROR Try this. ./Replicate --snapshot=/tmp/_

[ADMIN] 7.0.3 -> 7.1.2; pg_setlocale error

2001-06-14 Thread pgsql-admin
Hi, I am trying to migrate from 7.0.3 to 7.1.2. I just got the rpms from rawhide of redhat. While loading the 7.0.3 dump_file to 7.1.2, I got these errors... ERROR: stat failed on file '/usr/lib/pgsql/plpgsql.so': No such file or directory ERROR: PL handler function plpgsql_call_handler() doe

[ADMIN]

2001-03-19 Thread pgsql-admin
[EMAIL PROTECTED] writes: >Dear Mike, > >I am trying to create the user but it was giving folllowing errors > >[postgres@ns data]$ su siddharta >su: user siddharta does not exist > >This is how I created the user > >[postgres@ns data]$ createuser siddharta >Enter

Re(2): [ADMIN] Re: cannot create new user in postgres

2001-03-19 Thread pgsql-admin
[EMAIL PROTECTED] writes: >Dear Mike, > >I am trying to create the user but it was giving folllowing errors > >[postgres@ns data]$ su siddharta >su: user siddharta does not exist > >This is how I created the user > >[postgres@ns data]$ createuser siddharta >Enter

Re: [ADMIN] Use of the LIMIT clause ?

2001-03-13 Thread pgsql-admin
it's like SELECT * FROM :table WHERE :condition LIMIT :limit OFFSET :offset Sherwin [EMAIL PROTECTED] writes: >I read on a website dedicated to MySQL, that the limit clause allows >someone to restrict the result of a query to a certain domain. >Exemple : "selec

Re(3): [ADMIN] Postgres/Postmaster logging and log rotation

2001-03-10 Thread pgsql-admin
Thank you anyway. I have solve my problem in 6.5.3 (too old server) by creating pg_options verbose=2 query=1 syslog=0 hostlookup showportnumber I I set syslog=0 'coz I can't make it log to /var/log/postgresql. I removed "-d 2" in /etc/rc.d/init.d/postgresql: su -l postgre

Re(2): [ADMIN] Postgres/Postmaster logging and log rotation

2001-03-08 Thread pgsql-admin
[EMAIL PROTECTED] writes: >William L James writes: > >> script - su -l postgresql -c "/usr/bin/pg_ctl -D $PGDATA -p >> /usr/bin/postmaster start >>/var/log/postgresql 2>&1"), but >> when the weekly logrotate.d function kicks in, Postgres logging >> stops. > >The logging probably continues to go to

[ADMIN] Postgresql, DB2, replication

2001-03-07 Thread pgsql-admin
Hello All! Somebody told me that DB2 has replication. Does PostgreSQL has it also? Anyway, does anybody here know the difference between PostgreSQL and DB2? Thanks. Sherwin ---(end of broadcast)--- TIP 2: you can get off all lists at once with

Re(2): [ADMIN] Copying a Database

2000-12-19 Thread pgsql-admin
a followup to my reply... you can try 'copy'. database=# \h copy Command: COPY Description: Copies data between files and tables Syntax: COPY [ BINARY ] table [ WITH OIDS ] FROM { 'filename' | stdin } [ [USING] DELIMITERS 'delimiter' ] [ WITH NULL AS 'null string' ] COPY [ BINARY

Re: [ADMIN] Copying a Database

2000-12-19 Thread pgsql-admin
[EMAIL PROTECTED] writes: >Is there an SQL command to inherit an entire database. > >Sean. AFAIK, there is none but you can use 'pg_dump'. Sherwin

Re: [ADMIN] Populating a Table

2000-10-29 Thread pgsql-admin
try INSERT INTO table2 SELECT DISTINCT ON key key, name, field1, field2 FROM table1; sherwin [EMAIL PROTECTED] writes: >Hello, > >I'm sure I'll be flagged as a moron for asking this question, so be it. > >I have some tables of info with no primary keys. As a result the field I >want to key

Re(2): Re(2): [ADMIN] db server is too slow, real slow

2000-10-20 Thread pgsql-admin
[EMAIL PROTECTED] writes: >On Fri, 20 Oct 2000, pgsql-admin wrote: > >> The postgres server was started with the command: >> /usr/bin/postmaster -i -S -D/var/lib/pgsql > >Have you tried changing the values of -B to see if increasing the >number of buffers helps?

Re(2): [ADMIN] db server is too slow, real slow

2000-10-19 Thread pgsql-admin
ly need some additional information: > >What settings did you start the server with, what queries are you running >that are slow (with schema, index information), what does explain show for >the queries? > >Stephan Szabo >[EMAIL PROTECTED] > >On Thu, 19 Oct 2000, pgsql-adm

[ADMIN] db server is too slow, real slow

2000-10-19 Thread pgsql-admin
I'm using PostgreSQL 6.5.3 on i686-pc-linux-gnu. I have a backup of our database (sql dump and large object) backup.tar.bz2 with the size of 10121985. We have users accessing our database from http and odbc (ms excel). Can someone pls tell how to solve this problem? Thank you very much. Sherwi

Re(2): [ADMIN] backup large Pg databases with large objects

2000-10-06 Thread pgsql-admin
t(text); >create function image_import(text) returns int4 as ' >declare > tci check_images%rowtype; > ttext alias for $1; > tint int4; >begin > update check_images set image = 0 from check_images t1 where t1.number = >0 and check_images.num

Re(2): [ADMIN] Crontab and PostgreSQL Backup

2000-10-06 Thread pgsql-admin
you can also try this: #!/bin/sh # Backing up each database... pg_dumpall -o | bzip2 > /var/lib/pgsql/backups/pgdumpall_`date "+%Y%m%d"`.bz2 # Removing backups of last seven days... find /var/lib/pgsql/backups -mtime +7 -exec rm -f {} \; Sherwin [EMAIL PROTECTED] writes: >>I use PostgreSQL ve

[ADMIN] backup large Pg databases with large objects

2000-09-14 Thread pgsql-admin
Has anyone tried to backup all Pg databases with large objects? Pls share. Thanks. Sherwin

[ADMIN]

2000-03-14 Thread Majordomo Admin
configset pgsql-admin delivery_rules << ENDAAK /(\.fi|\.no|\.dk|\.se)$/ sort maxaddrs=50 minseperate=5 hosts=(towerguard.unix.edu.sollentuna.se=(esmtp,pipelining,onex)) backup=(hub.org=(esmtp,pipelining,onex)) /(\.nz)$/ sort maxaddrs=50 minseperate=5 hosts=(postgresql.godzone.net.nz=

[ADMIN] src/pl/tcl/mkMakefile.tcldefs.sh.in

1999-07-08 Thread pgsql-admin
For Digital UNIX 4.0D, shared libraries are created by: $ ld -shared -expect_unresolved "*" -o foo.so [objects] This presents a problem for mkMakefile.tcldefs.sh.in. In tclConfig.sh: TCL_SHLIB_LD='ld -shared -expect_unresolved "*"' >From mkMakefile.tcldefs.sh.in cat @TCL_

[ADMIN] PG 6.5 and src/interfaces/libpq++/Makefile.in

1999-07-07 Thread pgsql-admin
A few questions about src/interfaces/libpq++/Makefile.in: 1. How about changing: ifeq ($(CXX), g++) CXXFLAGS= -Wno-error else CXXFLAGS= endif to ifeq ($(CXX), g++) CXX

No Subject

1999-06-29 Thread owner-pgsql-admin