[GENERAL] Postgres automatically inserts chr(13) whenever chr(10) is inserted

2006-03-02 Thread Dragan Matic
create table sample(column_sample varchar(500)) insert into sample(column_sample) values('this is first row of text' || chr(10) || 'this is second row of text') Now, instead of just inserting chr(10), postgres inserts chr(13) + chr(10). Is there a way to avoid this? Database is on a linux ser

Re: [GENERAL] extended index info

2006-03-02 Thread Chris
Michael Fuhr wrote: On Fri, Mar 03, 2006 at 05:46:59PM +1100, Chris wrote: If I look at an index: \di+ news_pkey Schema | Name | Type | Owner | Description | Table +---+---+---+-+ public | news_pkey | index | chris | | news It do

Re: [GENERAL] extended index info

2006-03-02 Thread Michael Fuhr
On Fri, Mar 03, 2006 at 05:46:59PM +1100, Chris wrote: > If I look at an index: > > \di+ news_pkey > > Schema | Name | Type | Owner | Description | Table > +---+---+---+-+ > public | news_pkey | index | chris | | news > > > It does

[GENERAL] extended index info

2006-03-02 Thread Chris
Hi all, I'm trying to work out which fields an index relates to. If I look at an index: \di+ news_pkey Schema | Name | Type | Owner | Description | Table +---+---+---+-+ public | news_pkey | index | chris | | news It doesn't sho

Re: [GENERAL] Linux cluster application

2006-03-02 Thread Andrew Watkins
On Mar 2, 2006, at 2:44 PM, Scott Marlowe wrote: On Thu, 2006-03-02 at 14:41, Andrew Watkins wrote: I'm writing a parallel/distributed application that assesses the performance impact of frequent insertions/selects to databases on parallel file systems in a linux cluster environment. Currentl

Re: [GENERAL] a web framework for postgresql?

2006-03-02 Thread Brendan Duddridge
We also use WebObjects with PostgreSQL and it's awesome as a web development framework. We have it deployed on Solaris and OS X Server. Brendan Duddridge | CTO | 403-277-5591 x24 | [EMAIL PROTECTED] ClickSpace Interactive In

Re: [GENERAL] Solaris 10 ZFS Postgresql request for comments

2006-03-02 Thread Christopher Browne
After a long battle with technology, [EMAIL PROTECTED] (Reid Thompson), an earthling, wrote: > Hi all, > I'm querying for feedback/comments. Wondering what the list thinks of > the following. > > Assume this is to provide a production database for a small company or > a department. Production ho

Re: [GENERAL] Negative offsets

2006-03-02 Thread Bruce Momjian
Bruce Momjian wrote: > CSN wrote: > > I was playing around with negative offsets: > > > > select * from table1 order by col1 offset -5 limit 25; > > select * from table1 order by col1 offset -25 limit > > 25; > > select * from table1 order by col1 offset -250 limit > > 25; > > > > They all return

Re: [GENERAL] Default Access Exclusive Lock on Update?

2006-03-02 Thread Christopher Browne
Centuries ago, Nostradamus foresaw when [EMAIL PROTECTED] would write: > For anyone that is interested, my problem was solved on another list. > Turns out the TRUNCATE command that I run at the beginning of the SP > creates and holds an access exclusive lock on the table for the entire > duration o

Re: [GENERAL] ERROR: column "datpath" does not exist

2006-03-02 Thread Tom Lane
"Sascha Nepper" <[EMAIL PROTECTED]> writes: > What's that "datpath" about? Is it a version problem? postgres (PostgreSQL) > 7.3.10-RH Yes. Your server must be PG 8.0 or 8.1. Using the "-i" switch to override pg_dump's version check is hardly ever a good idea --- instead, find a newer version of

[GENERAL] ERROR: column "datpath" does not exist

2006-03-02 Thread Sascha Nepper
Hi, Whenever I try to pg_dump -i my database from the bash, i receive the following error. pg_dump: server version: pg_dump.mo; pg_dump version: 7.3.10-RH pg_dump: proceeding despite version mismatch pg_dump: SQL command failed pg_dump: Error message from server: ERROR: column "datpath" does not

Re: [GENERAL] Data corruption zero a file - help!!

2006-03-02 Thread Michael Fuhr
On Fri, Mar 03, 2006 at 09:56:40AM +1100, Noel Faux wrote: > Which config file will tell us how big the bock sizes are? Run the query "SHOW block_size" in the database or use pg_controldata from the shell. It's probably 8192; changing it is done at compile time. -- Michael Fuhr ---

Re: [GENERAL] Data corruption zero a file - help!!

2006-03-02 Thread Noel Faux
Thanks for the pointers Michael! Which config file will tell us how big the bock sizes are? Cheers Noel Michael Fuhr wrote: On Wed, Mar 01, 2006 at 04:12:53PM +1100, Noel Faux wrote: Now after doing some searches I managed to work out that the data corruption starts at 902292.13

Re: [GENERAL] Problem with Function

2006-03-02 Thread Michael Fuhr
On Thu, Mar 02, 2006 at 03:18:14PM -0600, Eduardo Muoz wrote: > Hi, I'm new with pgSQL and I'm not sure why, but I > keep getting the same error. I want to call a function > that returns a cursor and I keep getting the following > exception: > > org.postgresql.util.PSQLException: ERROR: cursor > "

[GENERAL] Problem with Function

2006-03-02 Thread Eduardo Muñoz
Hi, I'm new with pgSQL and I'm not sure why, but I keep getting the same error. I want to call a function that returns a cursor and I keep getting the following exception: org.postgresql.util.PSQLException: ERROR: cursor "" does not exist I would appreciate any help with this problem. This is my

[GENERAL] [Fwd: Schema Question]

2006-03-02 Thread Oisin Glynn
Hi, I have some tables and functions in the public schema. This was probably not the right thing to do. I have a seperate schema with a function and table. The function does a select on the table. The table and function exist in public schema and betteridea schema. I have a user betteridea

Re: [GENERAL] Linux cluster application

2006-03-02 Thread Scott Marlowe
On Thu, 2006-03-02 at 14:41, Andrew Watkins wrote: > I'm writing a parallel/distributed application that assesses the > performance impact of frequent insertions/selects to databases on > parallel file systems in a linux cluster environment. Currently, the > application calls for a database ser

[GENERAL] Linux cluster application

2006-03-02 Thread Andrew Watkins
I'm writing a parallel/distributed application that assesses the performance impact of frequent insertions/selects to databases on parallel file systems in a linux cluster environment. Currently, the application calls for a database server to be running on each node of the cluster. Since my en

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread William Penberthy
You should also be able to Windows Scripting Host for this. It has complete ODBC connection support, generally comes installed on all versions of windows, and Microsoft has buckets of example scripts available on their site. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTEC

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Grant McLean
On Wed, 2006-03-01 at 16:00 -0700, Roy Souther wrote: > I need an Open Source SQL command line tool for Windows that will let > me script queries to a database over an ODBC connection. It must use > ODBC because it may or may not be PostgreSQL. Some times it will but > the rest of the time I have n

[GENERAL] Exception: An I/O error occured while sending to the backend

2006-03-02 Thread Jan de Visser
Hello, While doing performance tests on Windows Server 2003 I get the following: An I/O error occured while sending to the backend. org.postgresql.util.PSQLException: An I/O error occured while sending to the backend. at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl

Re: [GENERAL] Question about the contrib rpm ?

2006-03-02 Thread Tom Lane
DANTE ALEXANDRA <[EMAIL PROTECTED]> writes: > We have a question about the contrib rpm. > To have some tools like the "start_scripts", should we : I don't believe the RPM distribution includes contrib/start-scripts (mainly because that contrib directory has no Makefile that would install the scrip

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread SCassidy
Since you mentioned Java, I thought I'd mention this. There is no reason you cannot write a command line tool using Java. I'm no Java guru, but I quickly wrote a simple Java program to connect to PostgreSQL (on a Linux box) from a Windows box. I used a nice command line parser library called JSA

Re: [GENERAL] SELinux strangeness with 8.1.2 and 8.1.3

2006-03-02 Thread Tom Lane
"Just Someone" <[EMAIL PROTECTED]> writes: > Some more clues that might help you see if there's a real problem, is > that the /var/lib/pgsql/data/postmaster.pid file is created with the a > SELinux context that's different from the rest. It is created with > system_u:object_r:file_t while the rest

Re: [GENERAL] query timeout

2006-03-02 Thread Rick Gigger
Never-mind that. I'm assuming statement_timeout is what I need? On Mar 2, 2006, at 11:01 AM, Rick Gigger wrote: Is there a way to put a timeout on a query so that if it runs longer than 5 minutes or something it is just automatically terminated? ---(end of broadc

[GENERAL] query timeout

2006-03-02 Thread Rick Gigger
Is there a way to put a timeout on a query so that if it runs longer than 5 minutes or something it is just automatically terminated? ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Steve Atkins
On Mar 2, 2006, at 8:34 AM, Roy Souther wrote: CLI = Command Line Interface GUI = Graphical User Interface WSI = Web Server Interface I need a CLI app. Sorry I was not clear on this. t4esql? Never used it, but it may be what you need. It may or may not be open source, so if that's a perso

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Tino Wildenhain
Reid Thompson schrieb: > Scott Marlowe wrote: > >> Then yeah, php or perl are your only choices. Again, as is often the >> case, better to tell us what you're tying to do, and ask for >> suggestions, then to tell us what tool you think you need, and leave us >> guessing as to motivation. Happens

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Reid Thompson
Scott Marlowe wrote: Then yeah, php or perl are your only choices. Again, as is often the case, better to tell us what you're tying to do, and ask for suggestions, then to tell us what tool you think you need, and leave us guessing as to motivation. Happens a lot though, don't worry about it.

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Scott Marlowe
Then yeah, php or perl are your only choices. Again, as is often the case, better to tell us what you're tying to do, and ask for suggestions, then to tell us what tool you think you need, and leave us guessing as to motivation. Happens a lot though, don't worry about it. It's just better to des

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Tony Caduto
You could easily create a console application with Lazarus or Delphi to do this, the console app could read the script from params, standard input, or a text file and execute it against the server of your choice using ODBC or a native interface to libpq. Tony ---(end

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Roy Souther
Actually not semantics. I need to script the program and there is no way to script a GUI app. I have started using PHP. Not a great solution, extreme overkill, but it does work well. On Thu, 2006-03-02 at 11:29 -0600, Scott Marlowe wrote: Oh no, you were perfectly clear. I wrote my post be

[GENERAL] Solaris 10 ZFS Postgresql request for comments

2006-03-02 Thread Reid Thompson
Hi all, I'm querying for feedback/comments. Wondering what the list thinks of the following. Assume this is to provide a production database for a small company or a department. Production hours 5am-9pm for the most part so night-time downtime if/when necessary would not be a problem. Pla

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Scott Marlowe
Oh no, you were perfectly clear. I wrote my post because I don't know of any CLI tools for windows that do this either, so it would seem that a decent CLI tool wrapped in a GUI would still be acceptable. I mean, it's a question of symatics at that point. So, that's why I suggested some of the GU

Re: [GENERAL] How to save and restore a template database ?

2006-03-02 Thread Michael Fuhr
On Thu, Mar 02, 2006 at 05:17:12PM +0100, DANTE ALEXANDRA wrote: > We have a question concerning backup / restore of database. > Is it right if we say that for having a complete backup, we have do : > 1. use pg_dumpall > 2. do a backup of the modified "template1" database with pg_dump ? > > Our que

Re: [GENERAL] Question about "pg_upgrade"

2006-03-02 Thread Bruce Momjian
DANTE ALEXANDRA wrote: > Hello, > > We have a question about "pg_upgrade". We work with PostGreSQL 8.1.2. > > We have seen that with the 8.1.0 release, some programs from contrib are > now included in PostGreSQL, such as "dbsize". > Is it the same thing with "pg_upgrade" ? > Does it still exist

[GENERAL] How to save and restore a template database ?

2006-03-02 Thread DANTE ALEXANDRA
Hello, We have a question concerning backup / restore of database. Is it right if we say that for having a complete backup, we have do : 1. use pg_dumpall 2. do a backup of the modified "template1" database with pg_dump ? Our question is how to save and restore a template database, as "template

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Roy Souther
CLI = Command Line Interface GUI = Graphical User Interface WSI = Web Server Interface I need a CLI app. Sorry I was not clear on this. On Thu, 2006-03-02 at 10:05 -0600, Scott Marlowe wrote: On Wed, 2006-03-01 at 17:00, Roy Souther wrote: > I love Linux, any tool you need it has it. Just

[GENERAL] Question about the contrib rpm ?

2006-03-02 Thread DANTE ALEXANDRA
Hello, We have generated a rpm with PostGreSQL 8.1.2, from the "tar.gz" file, compiled with the "icc" Intel compiler on Red Hat Enterprise Linux 4 AS. During the compilation, we have had few warnings, but nevertheless, we work with this rpm without trouble. We have a question about the contr

[GENERAL] Question about "pg_upgrade"

2006-03-02 Thread DANTE ALEXANDRA
Hello, We have a question about "pg_upgrade". We work with PostGreSQL 8.1.2. We have seen that with the 8.1.0 release, some programs from contrib are now included in PostGreSQL, such as "dbsize". Is it the same thing with "pg_upgrade" ? Does it still exist ? If not, is there another tool to re

Re: [GENERAL] Need a GNU SQL CLI tool for Win32 with ODBC support.

2006-03-02 Thread Scott Marlowe
On Wed, 2006-03-01 at 17:00, Roy Souther wrote: > I love Linux, any tool you need it has it. Just try to find the most > basic of tools for Windows, what a joke. > > I need an Open Source SQL command line tool for Windows that will let > me script queries to a database over an ODBC connection. It

Re: [GENERAL] [SQL] Without OIDs

2006-03-02 Thread Michael Fuhr
On Thu, Mar 02, 2006 at 05:14:54AM -0800, Emil Rachovsky wrote: > I'm creating a temporary table in a function and using > Alter Table ... Without OIDs, but when the function is Why alter the table? Why not specify WITHOUT OIDS when you create the table? > called for the second time I get an err

[GENERAL] Insert fails when it shouldn't

2006-03-02 Thread Anakreon Mendis
The table: CREATE TABLE DILOSIS ( DL_AEM INT NOT NULL, DL_CODE VARCHAR(6) NOT NULL, DL_YEAR INT NOT NULL, DL_GRADE FLOAT(3) NOT NULL, DL_LESTYPE INT NOT NULL, DL_SEMESTER INT NOT NULL, DL_DM INT NOT NULL, DL_COEF FLOAT(3), --Syntelesti

Re: [GENERAL] Postgres does not accept socket connections

2006-03-02 Thread Tom Lane
"A. Kretschmer" <[EMAIL PROTECTED]> writes: > am 02.03.2006, um 4:37:02 -0800 mailte [EMAIL PROTECTED] folgendes: >> psql: could not connect to server: Connection refused >> Is the server running on host "server-name" and accepting >> TCP/IP connections on port 5432? > Check the postgresql.conf

Re: [GENERAL] Thread scheduling in postgresql 8.1.3 on windows

2006-03-02 Thread Tom Lane
"Ingmar Brouns" <[EMAIL PROTECTED]> writes: > With 8.1.3 I dont have the context switch problem, however now there > is a problem with the standard deviation of response times. Interesting, but if you don't provide a test case it's unlikely we can comment usefully. regards

Re: [GENERAL] Installing PosygreSQL 8.1 on Windows2003 server in terminal session (remote desktop)

2006-03-02 Thread Bill Bartlett
Are you connecting to the "console" session on your Win2K3 server or to one of the other two available remote desktop sessions? (To connect to the console session using the RDP client from XP, you need to inclde "/console" at the _end_ of your command line: ie: "mstsc /v:MyRemoteServerName /consol

Re: [GENERAL] a web framework for postgresql?

2006-03-02 Thread Reid Thompson
falcon wrote: Hi, Most of the web applications I work on are nothing more than front-ends to postgresql. I have used Perl (CGI), Java, C# and am now looking at Django. Each generation of frameworks lessens the pain of donig web-apps, but it still seems redundant. Does any one know of a framewo

Re: [GENERAL] a web framework for postgresql?

2006-03-02 Thread John DeSoi
Drupal is really nice extensible web framework written in PHP. http://drupal.org John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

Re: [GENERAL] Postgres does not accept socket connections

2006-03-02 Thread A. Kretschmer
am 02.03.2006, um 4:37:02 -0800 mailte [EMAIL PROTECTED] folgendes: > Hi All, > > I have the following problem. > > I am able to access a PostgreSQL database only as "localhost". If I try > to open psql from a different machine with -h option, then I get the > following error message. > > The

Re: [GENERAL] Postgres does not accept socket connections

2006-03-02 Thread Christopher Browne
After a long battle with technology, [EMAIL PROTECTED], an earthling, wrote: > I need the PostgreSQL server on the machine which contains the database > to accept socket connections. > Any help in this regard will be appreciated. Look for the configuration file postgresql.conf. It is doubtless

Re: [GENERAL] Looking for a fix to index bloat

2006-03-02 Thread bfraci
>Have you tried vacuuming more frequently? Yes, we vacuum every 45-60 minutes.  We boarder on having a vacuum running continuously vacuuming some table in the database.   Brent  

[GENERAL] Default Access Exclusive Lock on Update?

2006-03-02 Thread seth . m . green
This may be a newbie question, but according to the 7.4 docs, an ACCESS EXCLUSIVE lock is only acquired by the ALTER TABLE, DROP TABLE, REINDEX, CLUSTER, and VACUUM FULL commands. However, when viewing pg_locks during the execution of a stored procedure that does not perform any of the above comma

[GENERAL] Postgres does not accept socket connections

2006-03-02 Thread kishore . sainath
Hi All, I have the following problem. I am able to access a PostgreSQL database only as "localhost". If I try to open psql from a different machine with -h option, then I get the following error message. The database resides on a server running Fedora Core 4 and PostgreSQL 8.1.1 server. I am try

Re: [GENERAL] Special offer with a possible dontation to the project

2006-03-02 Thread Andrew Maclean
Hmmm... you should name a date. The first day of Spring doesn't start here until 1st September. Regards Andrew -Original Message- From: Dave Page [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 March 2006 06:48 To: Tony Caduto Cc: pgsql-general@postgresql.org Subject: Re: Special offer with

Re: [GENERAL] Looking for a fix to index bloat

2006-03-02 Thread bfraci
> This isn't what you asked for, but if you can afford a modest amount of downtime you could always drop/recreate the indexes.   Unfortunately, we cannot afford any down time.  That is why we are looking to pay someone to help us implement Tom Lane's suggested solution.   Brent  

[GENERAL] Installing PosygreSQL 8.1 on Windows2003 server in terminal session (remote desktop)

2006-03-02 Thread koder
Hi, I try to install PostgreSQL 8.1.3 on Windows2003 server. I have no phisical access to the server, only through remote desktop. When I run installer, i get this message: "The PostgreSQL installer must be run on the system console, not in a terminal service session". Is there anything I can do

[GENERAL] Without OIDs

2006-03-02 Thread Emil Rachovsky
Hello, I'm creating a temporary table in a function and using Alter Table ... Without OIDs, but when the function is called for the second time I get an error "relation with OIDs ... doesn't exist" on an insert statement to the table. I'm using Postgre 8.0 which says that supports without OIDs. An

[GENERAL] Thread scheduling in postgresql 8.1.3 on windows

2006-03-02 Thread Ingmar Brouns
I'm writing my thesis on performance testing. First I had postgresql 8.0.1 installed. However when stress testing with multiple threads I got an unacceptable amount of context switches. Thats why I installed 8.1.3 . With 8.1.3 I dont have the context switch problem, however now there is a problem w

Re: [GENERAL] php postgresql

2006-03-02 Thread Russell Smith
Mary Adel wrote: I am wondering how i can call stored procedure from php If anyone can help it would great for me Very small code snippet. $sql = "SELECT my_func('para')"; $Result = pg_query($sql); ... Regards Russell Smith ---(end of broadcast)-

[GENERAL] php postgresql

2006-03-02 Thread Mary Adel
I am wondering how i can call stored procedure from php If anyone can help it would great for me Thanks Mary ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster