Re: [GENERAL] Run PostgreSQL with Administrator account in Windows

2006-03-09 Thread Michael Louie Loria
Tom Lane wrote: > "Joshua D. Drake" <[EMAIL PROTECTED]> writes: >> Michael Louie Loria wrote: >>> How do I run PostgreSQL with Administrator account in Windows? > >> You can't. It is a security issue and we don't allow it. > > FYI, there is code in CVS HEAD to allow starting the postmaster from >

Re: [GENERAL] questions?

2006-03-09 Thread Chris
xia_pw wrote: > Hi,I have read the source codes of pgsql these days,and I want to know > which part of the source codes deal with the function of executing the > sql(select,alter,and so on),and which function deal with the query > operation. Thank! Why? If you want to add functionality you'll

[GENERAL] questions?

2006-03-09 Thread xia_pw
Hi,I have read the source codes of pgsql these days,and I want to know which part of the source codes deal with the function of executing the sql(select,alter,and so on),and which function  deal with the query operation. Thank!

Re: [GENERAL] select where in and order

2006-03-09 Thread Stephan Szabo
On Thu, 9 Mar 2006, Tony Smith wrote: > I have two tables action and group: > > action > > id, > name > > group: > > action_id > rank > > I what to select from action table by order by the > rank in the group table. > > If I use > > select * from a

Re: [GENERAL] select where in and order

2006-03-09 Thread Chris
Tony Smith wrote: I have two tables action and group: action id, name group: action_id rank I what to select from action table by order by the rank in the group table. If I use select * from action where id in (select action_id from group o

Re: [GENERAL] select where in and order

2006-03-09 Thread Roger Hand
Tony Smith wrote on Thursday, March 09, 2006 6:33 PM > To: pgsql-general@postgresql.org > Subject: [GENERAL] select where in and order > > > I have two tables action and group: > > action > > id, > name > > group: > > action_id > rank > > I wh

Re: [GENERAL] Run PostgreSQL with Administrator account in Windows

2006-03-09 Thread Tom Lane
"Joshua D. Drake" <[EMAIL PROTECTED]> writes: > Michael Louie Loria wrote: >> How do I run PostgreSQL with Administrator account in Windows? > You can't. It is a security issue and we don't allow it. FYI, there is code in CVS HEAD to allow starting the postmaster from an admin account via pg_ctl:

Re: [GENERAL] Run PostgreSQL with Administrator account in Windows

2006-03-09 Thread Michael Louie Loria
Joshua D. Drake wrote: > You can't. It is a security issue and we don't allow it. > > Joshua D. Drake > Thanks Joshua. that was a quick response. Michael Louie Loria LoRz Technology Solutions http://www.lorztech.com signature.asc Description: OpenPGP digital signature

[GENERAL] select where in and order

2006-03-09 Thread Tony Smith
I have two tables action and group: action id, name group: action_id rank I what to select from action table by order by the rank in the group table. If I use select * from action where id in (select action_id from group order by rank) The ac

Re: [GENERAL] Run PostgreSQL with Administrator account in Windows

2006-03-09 Thread Joshua D. Drake
Michael Louie Loria wrote: Hello, How do I run PostgreSQL with Administrator account in Windows? I know this is a security issue but I just want to test it in my Administrator account. You can't. It is a security issue and we don't allow it. Joshua D. Drake Thanks, Michael Louie Loria L

[GENERAL] Run PostgreSQL with Administrator account in Windows

2006-03-09 Thread Michael Louie Loria
Hello, How do I run PostgreSQL with Administrator account in Windows? I know this is a security issue but I just want to test it in my Administrator account. Thanks, Michael Louie Loria LoRz Technology Solutions http://www.lorztech.com signature.asc Description: OpenPGP digital signature

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

2006-03-09 Thread Tom Lane
Noel Faux <[EMAIL PROTECTED]> writes: > To clarify, when set on, every time it hits this error, postgres will > rezero that block? It'll only "re" zero if the page gets dropped from shared memory without there having been any occasion to write it out. Otherwise, the first write will clobber the

Re: [GENERAL] posgresql server connection

2006-03-09 Thread Jan de Visser
On Thursday 09 March 2006 11:31, Mongi LASSOUED wrote: > Hello > I have the postgresql installed on Fedora Core 4. I have set > tcpip_socket=true > in posgresql.conf file and specified the host ip adress in pg_hba.conf > file. When i start the postmaster i have this error: > FATAL: unrecognized con

Re: [GENERAL] posgresql server connection

2006-03-09 Thread Tom Lane
"Mongi LASSOUED" <[EMAIL PROTECTED]> writes: > I have the postgresql installed on Fedora Core 4. I have set > tcpip_socket=true > in posgresql.conf file and specified the host ip adress in pg_hba.conf file. > When i start the postmaster i have this error: > FATAL: unrecognized configuration parame

Re: [GENERAL] majordomo unmaintained, postmaster emails ignored?

2006-03-09 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I stopped getting any mail from postgresql.org last fall. Repeated > attempts to subscribe have all been met with silence. Something > appears to have changed. You are still subscribed, but your address was set to "nomail". I've flipped it back to

Re: [GENERAL] PL/pgSQL question

2006-03-09 Thread Tom Lane
Ycrux <[EMAIL PROTECTED]> writes: > # SELECT grantAccess('sara', 'sarapass'); > ERROR: set-valued function called in context that cannot accept a set You need to do "SELECT * FROM grantAccess(...)". This is a plpgsql implementation restriction that we'll probably try to fix someday, although the

Re: [GENERAL] Tsearch2 cache lookup problem

2006-03-09 Thread matroska
I made a restore from a database without tsearch2 installed, installed tsearch2 executing tsearch2.sql and than used it successfully. One day after this i obtained that error as if a database corruption occurred...however noone has touched the database... Thanks for the answers John slave -- View

[GENERAL] posgresql server connection

2006-03-09 Thread Mongi LASSOUED
Hello I have the postgresql installed on Fedora Core 4. I have set tcpip_socket=true in posgresql.conf file and specified the host ip adress in pg_hba.conf file. When i start the postmaster i have this error: FATAL: unrecognized configuration parameter "tcpip_socket" can you help me??!! thanks a

[GENERAL] PostgresSQL 8.13 builds perfect on new Mac OS X 10.4 for Intel Chips

2006-03-09 Thread Karstens Hashimoto
Hi, this is to inform you that I just downloaded and build PostgresSQL 8.1.3 on Mac OS X 10.4 Intel without any problems. No surprise for you perhaps, but a big surprise for me. Since make and compilers on Mac OS X are always GNU, I expected to be able to build PostgresSQL with some effort.

[GENERAL] Storage Estimates

2006-03-09 Thread Nik
Is there any documentation or literature on storage estimation for PostgreSQL 8.1 on Windows? If I am given raw data file structure and frequency, I want to be able to calculate the amount of storage necessary to store one day, one month, six months, one year, or two years worth of data. So I am l

Re: [GENERAL] Out of memory error on pg_restore

2006-03-09 Thread Nik
Yes, I was indeed out of memory. That is the problem: the postgres.exe process corresponding to the pg_restore continuously consumes more and more memory until it runs out and fails with the mentioned error. Since I already have 4Gb of RAM, throwing more hardware at it is not a feasible solution, s

Re: [GENERAL] Out of memory error on pg_restore

2006-03-09 Thread Nik
Tom was exactly right. I was trying to restore the dump file into an already created table structure that did have three foreign key constraints. I removed the primary key constraint to speed up the load, but was not aware of the memory usage of the foreign keys. I dropped the table and ran the p

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

2006-03-09 Thread Noel Faux
To clarify, when set on, every time it hits this error, postgres will rezero that block? Michael Fuhr wrote: On Thu, Mar 09, 2006 at 03:57:46PM +1100, Noel Faux wrote: Given that this seems problem has occurred a number of times for a number I've written a small step by step proc

Re: [GENERAL] majordomo unmaintained, postmaster emails ignored?

2006-03-09 Thread Rick Ellis
In article <[EMAIL PROTECTED]>, Marc G. Fournier <[EMAIL PROTECTED]> wrote: >So how did you get this message? :( Via Usenet. -- http://yosemitephotos.net/ ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] PL/pgSQL question

2006-03-09 Thread Ycrux
Hi All! I'm trying to get working the below PL/pgSQL function without sucess. The function is correctly created, but when I tested it i got: # SELECT grantAccess('sara', 'sarapass'); ERROR: set-valued function called in context that cannot accept a set CONTEXT: PL/pgSQL function "grantaccess" l

Re: [GENERAL] majordomo unmaintained, postmaster emails ignored?

2006-03-09 Thread Marc G. Fournier
On Thu, 9 Mar 2006, Rick Ellis wrote: In article <[EMAIL PROTECTED]>, Roman Neuhauser <[EMAIL PROTECTED]> wrote: I've been waiting five months for the majordomo moderators to approve my subscription requests to several @postgresql.org mailing lists. I stopped getting any mail from postgresql

Re: [GENERAL] multi-column aggregates

2006-03-09 Thread Bruno Wolff III
On Thu, Mar 09, 2006 at 12:56:21 -0500, Chris Kratz <[EMAIL PROTECTED]> wrote: > Hello All, > > Is there any way in postgres to have an aggregate that uses input from two > columns without using composite types? The example we are working on is a > first or last aggregate which requires a dat

Re: [GENERAL] majordomo unmaintained, postmaster emails ignored?

2006-03-09 Thread Rick Ellis
In article <[EMAIL PROTECTED]>, Roman Neuhauser <[EMAIL PROTECTED]> wrote: >I've been waiting five months for the majordomo moderators to approve >my subscription requests to several @postgresql.org mailing lists. I stopped getting any mail from postgresql.org last fall. Repeated attempts to subs

Re: [GENERAL] multi-column aggregates

2006-03-09 Thread Berend Tober
I may not fully understand your situation but SELECT distinct grouping, (SELECT integer_column FROM test.test_agg_last WHERE grouping=t1.grouping ORDER BY cur_date DESC LIMIT 1) AS last_int, (SELECT integer_column FROM test.test_agg_last WHERE grouping=t1.grouping ORDER BY cur_date ASC LIMIT 1)

Re: [GENERAL] view creation question

2006-03-09 Thread Alban Hertroys
Richard Huxton wrote: Larry White wrote: SELECT * FROM Tasks UNION ALL SELECT * FROM Issues; In case you care about where a record originated from: SELECT *, 'Tasks' AS source FROM Tasks UNION ALL SELECT *, 'Issues' AS source FROM Issues; Regards, -- Alban Hertroys [EMAIL PROTECTED] magprod

Re: [GENERAL] JDBC

2006-03-09 Thread Bob Pawley
I'll try it.   Thanks for your help.   Bob   - Original Message - From: Daniel Blaisdell To: Bob Pawley Cc: Postgresql Sent: Thursday, March 09, 2006 11:58 AM Subject: Re: [GENERAL] JDBC -BEGIN PGP SIGNED MESSAGE-Hash: SHA1I'm assuming that your rea

Re: [GENERAL] JDBC

2006-03-09 Thread Daniel Blaisdell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm assuming that your real postgres version is 8.1 and that what you're reporting is just 8.1.2-1 release for windows. Thebest place to get JDBC drivers for postgres is http://jdbc.postgresql.org I would recommend downloading the JDBC3 driver for 8.1

Re: [GENERAL] NULL TIMESTAM problem

2006-03-09 Thread Enrique S�nchez
OK. the error was that: postgress didn't recognize which was the NULLstring, because the format file was: value1*value2**value4, where the delimiter is: * . I learnd the default NULL string is '\N', but as you told me, you can specify this in the command definition. Thanks Michael. Fro

[GENERAL] JDBC

2006-03-09 Thread Bob Pawley
I am attempting to connect Postgresql (Windows XP, Version 1.2.1 March 28, 2005 (in the PG Admin 3 about ) to Java Studio Creator 2.   Of the four selections presented can someone point to the driver I should use for PG Version 1.2.1???   Bob    

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

2006-03-09 Thread Michael Fuhr
On Thu, Mar 09, 2006 at 03:57:46PM +1100, Noel Faux wrote: > Given that this seems problem has occurred a number of times for a > number I've written a small step by step procedure to address this > issue. Is there any other comments you which to add. I was thinking > that this should be added

Re: [GENERAL] NULL TIMESTAM problem

2006-03-09 Thread Michael Fuhr
On Thu, Mar 09, 2006 at 12:49:14PM -0600, Enrique Sánchez wrote: > I nedd to fill a database table x from a file With the COPY command an the > delimiter '*'. > This table has a timestamp null column (I declared like: ' birthday > timestamp NULL' ). > > But when I try to insert NULL values(spe

Re: [GENERAL] multi-column aggregates

2006-03-09 Thread Merlin Moncure
Chris Kratz wrote: > Well for anyone else who may be interested in doing something similar, here is > what we did. It does require typecasting going into the functions, composite > types and using the dot notation to get the value back out of the composite > object returned. But it works. > > Thi

Re: [GENERAL] multi-column aggregates

2006-03-09 Thread Chris Kratz
Thanks Tom, Well for anyone else who may be interested in doing something similar, here is what we did. It does require typecasting going into the functions, composite types and using the dot notation to get the value back out of the composite object returned. But it works. This is what we w

[GENERAL] NULL TIMESTAM problem

2006-03-09 Thread Enrique S�nchez
Hi! I'm new in Postgres. I nedd to fill a database table x from a file With the COPY command an the delimiter '*'. This table has a timestamp null column (I declared like: ' birthday timestamp NULL' ). But when I try to insert NULL values(specified in the file), postgres throw an error.

Re: [GENERAL] multi-column aggregates

2006-03-09 Thread Tom Lane
Chris Kratz <[EMAIL PROTECTED]> writes: > Is there any way in postgres to have an aggregate that uses input from two > columns without using composite types? No. regards, tom lane ---(end of broadcast)--- TIP 9: In versions

[GENERAL] multi-column aggregates

2006-03-09 Thread Chris Kratz
Hello All, Is there any way in postgres to have an aggregate that uses input from two columns without using composite types? The example we are working on is a first or last aggregate which requires a data value and a date column. The result would be to find the latest date within the group a

[GENERAL] ExtenDB

2006-03-09 Thread gkoskenmaki
Hi All,   Does anyone here have any experience with ExtenDB?  We were looking into this as a solution for a database server cluster that our company will be putting online this fall and would appreciate any feedback anyone can give concerning this, or any of the other open source cluster

Re: [GENERAL] view creation question

2006-03-09 Thread Csaba Nagy
In addition to the other replies (regarding UNION), are you aware that you can use inheritance in postgres to factor out common fields ? Then you could use the parent table to access the common denominator of the children. I'm not sure though if this fits your needs, just worth mentioning. See also

Re: [GENERAL] view creation question

2006-03-09 Thread Richard Huxton
Larry White wrote: I need a read only view that concatenates data from two tables. Basically both tables would need a simple query like Select name, description, date from Tasks; Select name, description, date from Issues; Is there some way to wrap these two independent queries in a "CREATE VI

Re: [GENERAL] view creation question

2006-03-09 Thread Michael Glaesemann
On Mar 10, 2006, at 0:55 , Larry White wrote: Is there some way to wrap these two independent queries in a "CREATE VIEW myview AS" statement? CREATE VIEW myview AS Select name, description, date from Tasks UNION Select name, description, date from Issues; Michael Glaesemann grzm myrealbox c

Re: [GENERAL] view creation question

2006-03-09 Thread Michael Fuhr
On Thu, Mar 09, 2006 at 10:55:12AM -0500, Larry White wrote: > I need a read only view that concatenates data from two tables. Basically > both tables would need a simple query like > > Select name, description, date from Tasks; > > Select name, description, date from Issues; > > Is there some w

[GENERAL] view creation question

2006-03-09 Thread Larry White
I need a read only view that concatenates data from two tables. Basically both tables would need a simple query like Select name, description, date from Tasks; Select name, description, date from Issues; Is there some way to wrap these two independent queries in a "CREATE VIEW myview AS" statem

Re: [GENERAL] Benchmark-Comparison PostGreSQL vs. SQL Server

2006-03-09 Thread Merlin Moncure
> > Background: > > 1. I read people were using PostGreSQL with TeraBytes of data > > sometimes, or thousands of users. These are things that could easily > > break SQL Server. - So I thought PostGreSQL might be similar fast to > > SQL Server. 2. I did some tests: Windows XP SP2 > > Several GIGs fr

Re: [GENERAL] Perspective: PostgreSQL usage boon after release of 8.2

2006-03-09 Thread Merlin Moncure
On 3/7/06, Ken Johanson <[EMAIL PROTECTED]> wrote: > Just a quick thought, and an possibly over-optimistic forecast: > I'm am SOOO looking forward to hearing the beta announcement for 8.2... > hopefully that version's still on target for the standard string escape > option.. This *one* roadblock wi

Re: [GENERAL] Fixing up a corrupted toast table

2006-03-09 Thread Marko Kreen
On 3/9/06, Tom Lane <[EMAIL PROTECTED]> wrote: > Steve Atkins <[EMAIL PROTECTED]> writes: > >>> make it happy by inserting a dummy row into the toast table (chunk ID > >>> as specified in the error, chunk sequence 0, any old data value). > > > Any attempt to touch the toast table gives me: > > ERRO

Re: [GENERAL] database/schema level triggers?

2006-03-09 Thread Tomi NA
Thanks for the info, everyone.Tomislav

Re: [GENERAL] double-quoted field names in pgadmin

2006-03-09 Thread Dave Page
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of levi godinez > Sent: 09 March 2006 07:39 > To: pgsql-general@postgresql.org > Subject: [GENERAL] double-quoted field names in pgadmin > > Hi, > > How to turn off the double-quoted field names in

[GENERAL] (sem assunto)

2006-03-09 Thread Wellington Fernandes da Silva
subscribe end ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] questions?

2006-03-09 Thread Richard Huxton
xia_pw wrote: > Hi,guys.Who knows the structure of the pgsql source codes.What I > means is that the content of the source codes and its function. The source code is downloadable from the website at http://www.postgresql.org/ and there are details at http://www.postgresql.org/developer/ You may

Re: [GENERAL] Tsearch2 cache lookup problem

2006-03-09 Thread Richard Huxton
Tom Lane wrote: Richard Huxton writes: Matroska80 wrote: Hi i have a problem using tsearch2 with postgresql. Executing: SELECT to_tsquery('default','kj'); return a cache lookup failed for function 141542. Try the following: SELECT oid,* FROM pg_proc WHERE proname='to_tsquery'; That should