Re: [GENERAL] CONSTRAINT does not show when applying a EXCLUDE constraint

2010-12-28 Thread InterRob
Dear Tom, Thanks for your hints; it is indeed funny (as mentioned by Guillaume) how indexes and constraints are being mixed up -- mentioned either in the Indexes or in Constraints department. Pgsql and PgAdmin make different choices here. And well, given their implementation these choices can both

Re: [GENERAL] Startup Process Initiated by init proc (Unix)

2010-12-28 Thread aaliya zarrin
I can tell the changes I have done in the code if you want. On Tue, Dec 28, 2010 at 12:30 PM, aaliya zarrin wrote: > Sorry, My application is using the postgres DB but the another application > is giving the command to run in standby or active mode. > I can't use gdb I beleive. > Can you suggest

[GENERAL] PowerDesigner 15

2010-12-28 Thread el dorado
Hello! I would like to get more flexible tool for database management that EMS of pgadmin. So now I'm trying to use PD 15 with Postgres 8.4.1. It's very exciting :) So what can I say? It seems to be there are no problems with tables, sequences, FK... But there are some difficulties with: 1. St

Re: [GENERAL] CONSTRAINT does not show when applying a EXCLUDE constraint

2010-12-28 Thread InterRob
SOLVED: I should use the "CREATE UNIQUE INDEX ... ON ..." command, on an existing table. This cannot be done inline within the CREATE TABLE command. Thanks all, for your help. Rob 2010/12/28 InterRob > Dear Tom, > > Thanks for your hints; it is indeed funny (as mentioned by Guillaume) how > i

Re: [GENERAL] Startup Process Initiated by init proc (Unix)

2010-12-28 Thread aaliya zarrin
Hi, I am unable to run the postgres using gdb. I am getting error as " no debugging symbols found". How to proceed? On Tue, Dec 28, 2010 at 11:32 AM, Fujii Masao wrote: > On Tue, Dec 28, 2010 at 2:24 PM, aaliya zarrin > wrote: > > I am new to postgres. I am using 9.0.1 of postgres. > > I am usi

Re: [GENERAL] PowerDesigner 15

2010-12-28 Thread Dmitriy Igrishin
28 декабря 2010 г. 13:02 пользователь el dorado написал: > Hello! > > I would like to get more flexible tool for database management that EMS of > pgadmin. So now I'm trying to use PD 15 with Postgres 8.4.1. It's very > exciting :) > So what can I say? > It seems to be there are no problems with

[GENERAL] DATA Location

2010-12-28 Thread Ozz Nixon
Is it possible (and how) to implement a data path on another partition (linux) for an existing system? And then if I do not gain anything, merging it to the production /data path? Scenario of what I want to achieve (/mnt/data is already running) /mnt/data resides on an NFS share

Re: [GENERAL] DATA Location

2010-12-28 Thread Raymond O'Donnell
On 28/12/2010 14:56, Ozz Nixon wrote: Is it possible (and how) to implement a data path on another partition (linux) for an existing system? And then if I do not gain anything, merging it to the production /data path? I think tablespaces will do what you want: http://www.postgresql.org/docs/

Re: [GENERAL] DATA Location

2010-12-28 Thread Andreas Kretschmer
Ozz Nixon wrote: > Is it possible (and how) to implement a data path on another partition > (linux) for an existing system? And then if I do not gain anything, > merging it to the production /data path? I think, you should read our docu about tablespaces: http://www.postgresql.org/docs/current/

[GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Alexander Farber
Hello, I'm working on a small app, which receives a list of 20 players in XML format. The initial version works ok and I use there just 1 SQL statement and thus it is easy for me to fetch results row by row and print XML at the same time: select u.id,

Re: [GENERAL] DATA Location

2010-12-28 Thread Scott Marlowe
On Tue, Dec 28, 2010 at 7:56 AM, Ozz Nixon wrote: > Is it possible (and how) to implement a data path on another partition > (linux) for an existing system? And then if I do not gain anything, merging > it to the production /data path? > > Scenario of what I want to achieve (/mnt/data is already

[GENERAL] Devart ADO.NET Data Providers Deliver Advanced Model-First and Database-First Support and Improved ORM Solution!

2010-12-28 Thread Devart
New versions of Devart ADO.NET Data Providers with improved capabilities of ORM solution and advanced Model-First and Database-First support in ORM model designer. Devart has recently announced the release of the new versions of dotConnect Data Providers, the database connectivity solutions built

Re: [GENERAL] Devart ADO.NET Data Providers Deliver Advanced Model-First and Database-First Support and Improved ORM Solution!

2010-12-28 Thread Gurjeet Singh
I think this is not the right forum for such announcements. Consider http://archives.postgresql.org/pgsql-announce/ . I think Postgres weekly news will pick it up automatically from there. Regards, On Tue, Dec 28, 2010 at 8:45 AM, Devart wrote: > > New versions of Devart ADO.NET Data Providers

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Alexander Farber
I'm trying: create or replace function pref_money_stats(_id varchar) returns varchar as $BODY$ begin declare stats varchar; for row in select yw, money from pref_money where id=_id order by yw desc limit 20 loop stats := stats || ";" || row.id || "

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Gary Chambers
Alex, create or replace function pref_money_stats(_id varchar) returns varchar as $BODY$ begin declare stats varchar; for row in select yw, money from pref_money where id=_id order by yw desc limit 20 loop stats := stats || ";" || row.id || ":" || row

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Dmitriy Igrishin
2010/12/28 Alexander Farber > Hello, > > I'm working on a small app, which receives a list of 20 players in XML > format. > > The initial version works ok and I use there just 1 SQL statement and thus > it is easy for me to fetch results row by row and print XML at the same > time: > >

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Dmitriy Igrishin
2010/12/28 Dmitriy Igrishin > > > 2010/12/28 Alexander Farber > > Hello, >> >> I'm working on a small app, which receives a list of 20 players in XML >> format. >> >> The initial version works ok and I use there just 1 SQL statement and thus >> it is easy for me to fetch results row by row and p

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Igor Neyman
> -Original Message- > From: Alexander Farber [mailto:alexander.far...@gmail.com] > Sent: Tuesday, December 28, 2010 10:33 AM > To: pgsql-general@postgresql.org > Subject: Concatenating several rows with a semicolon > > Hello, > > I'm working on a small app, which receives a list of 2

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Bill Moran
In response to "Igor Neyman" : > > > > -Original Message- > > From: Alexander Farber [mailto:alexander.far...@gmail.com] > > Sent: Tuesday, December 28, 2010 10:33 AM > > To: pgsql-general@postgresql.org > > Subject: Concatenating several rows with a semicolon > > > > Hello, > > > > I

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Alexander Farber
Hello Bill and others, I don't agree about yw being a bad thing since I have weekly raings in my app, but your XML suggestion - On Tue, Dec 28, 2010 at 9:29 PM, Bill Moran wrote: > > If there are multiple entries for pref_money, then each one should be > a container inside user, i.e.: > > >   >

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Dmitriy Igrishin
2010/12/29 Alexander Farber > Hello Bill and others, > > I don't agree about yw being a bad thing > since I have weekly raings in my app, > but your XML suggestion - > > On Tue, Dec 28, 2010 at 9:29 PM, Bill Moran > wrote: > > > > If there are multiple entries for pref_money, then each one shoul

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Alexander Farber
On Tue, Dec 28, 2010 at 10:31 PM, Dmitriy Igrishin wrote: >> > >> >   >> >  ... etc ... >> > > > Well, generally storing data in attributes should be avoided: > > >   >     ... >     ... >   >   ... > > is a better. Attributes give me smaller size... Regards Alex -- Sent via pgsql-genera

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Dmitriy Igrishin
2010/12/29 Alexander Farber > On Tue, Dec 28, 2010 at 10:31 PM, Dmitriy Igrishin > wrote: > >> > > >> > > >> > ... etc ... > >> > > > > > Well, generally storing data in attributes should be avoided: > > > > > > > > ... > > ... > > > > ... > > > > is a better. > > Attribut

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Bill Moran
In response to Alexander Farber : > Hello Bill and others, > > I don't agree about yw being a bad thing > since I have weekly raings in my app, > but your XML suggestion - Do as you like, but I'll bet my reputation that decision will become an unnecessary limitation for the application at some p

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Alexander Farber
Hello Dmitriy, I think this combination of attributes and children: >> >> > >> >> >   >> >> >  ... etc ... >> >> > will be a good balance between size and my original problem (combining user data and their stats in 1 chunk of information). And I don't use JSON, because it is not natively supp

[GENERAL] Min/Max for partitioned tables

2010-12-28 Thread tmoore
Using 8.4, seeing min/max doing sequential scans for partitioned tables and noticed similar posts. It wasn't clear to me if 9.0 addressed this. Wondered what the state of this was. Thanks Tom -- View this message in context: http://postgresql.1045698.n5.nabble.com/Min-Max-for-partitioned-table

[GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
Hi I have restored a database using psql to windows version 8.4. During the restore the trigger code became jumbled. I now have a great number of lines that have moved so that they are now included in lines the have been commented out – not to mention that the code is hard to read. Is there

Re: [GENERAL] Restore problem

2010-12-28 Thread Gurjeet Singh
On Tue, Dec 28, 2010 at 6:06 PM, Bob Pawley wrote: > Hi > > I have restored a database using psql to windows version 8.4. > > During the restore the trigger code became jumbled. > > I now have a great number of lines that have moved so that they are now > included in lines the have been commen

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On Tuesday 28 December 2010 3:06:40 pm Bob Pawley wrote: > Hi > > I have restored a database using psql to windows version 8.4. > > During the restore the trigger code became jumbled. > > I now have a great number of lines that have moved so that they are now > included in lines the have been comm

Re: [GENERAL] Min/Max for partitioned tables

2010-12-28 Thread Tom Lane
tmoore writes: > Using 8.4, seeing min/max doing sequential scans for partitioned tables and > noticed similar posts. It wasn't clear to me if 9.0 addressed this. Wondered > what the state of this was. Fixed for 9.1: http://archives.postgresql.org/pgsql-committers/2010-11/msg00028.php

[GENERAL] B-tree index with sorting question

2010-12-28 Thread bricklen
In the docs at http://www.postgresql.org/docs/9.0/static/sql-createindex.html, I see that you can build indexes that include ordering. Eg. create index t_col_idx on t (col DESC NULLS LAST); Does that mean that the initial creation of the index acts like the CLUSTER command? If so, what happens to

Re: [GENERAL] did freese in creating a database cluster

2010-12-28 Thread Tsutomu Nakajima
Thank you for responsing the problem. Although you suggested, I had needed to prepare for version7 on AIX 5.2L. Thus, i tried to build v7.4.6 not v7.4.30, and it was successfly. Thanks. Tsutomu

Re: [GENERAL] B-tree index with sorting question

2010-12-28 Thread Tom Lane
bricklen writes: > In the docs at http://www.postgresql.org/docs/9.0/static/sql-createindex.html, > I see that you can build indexes that include ordering. > Eg. create index t_col_idx on t (col DESC NULLS LAST); > Does that mean that the initial creation of the index acts like the > CLUSTER comm

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 4:21 PM To: pgsql-general@postgresql.org Cc: Bob Pawley Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 3:06:40 pm Bob Pawley wrote: Hi I have restored a database using psql to windows version

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On Tuesday 28 December 2010 5:58:51 pm Bob Pawley wrote: > -Original Message- > From: Adrian Klaver > Sent: Tuesday, December 28, 2010 4:21 PM > To: pgsql-general@postgresql.org > Cc: Bob Pawley > Subject: Re: [GENERAL] Restore problem > > On Tuesday 28 December 2010 3:06:40 pm Bob Pawley w

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
Yes I was just looking at it. It seems that it was dumped in that form. Any thoughts on how that could happen?? Not that it will help in this instance. Bob -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:09 PM To: Bob Pawley Cc: pgsql-general@postgresql.or

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:09 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 5:58:51 pm Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > > > Bob > > > > -- > > Adrian Klaver > > adrian.kla...@gmail.com > > > > This is the plain text dump file through pg_admin dump. But the plain > > text dump fie through psql restored in the same way. > > I am not following. psql cannot cre

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:51 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > > Bob > > -- > Adrian Klaver > adrian.kla...@gmail.com >

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 6:51 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On Tuesday 28 December 2010 6:41:51 pm Bob Pawley wrote: > > Bob > > -- > A

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:16 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From:

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:27 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:06 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:05 PM, Bob Pawley wrote: -Original Message- From:

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Adrian Klaver Sent: Tuesday, December 28, 2010 7:33 PM To: Bob Pawley Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On 12/28/2010 07:27 PM, Bob Pawley wrote: -Original Message- From: Adrian Klaver Sent: Tuesday, December 28

Re: [GENERAL] Restore problem

2010-12-28 Thread Adrian Klaver
On 12/28/2010 07:40 PM, Bob Pawley wrote: Open the file in Wordpad and see if it looks better. I downloaded an sql editor and it looks the same in it as well. At least the editor will make it easier to fix the problem. However I would like to know what happened so I can avoid it in the future

Re: [GENERAL] Restore problem

2010-12-28 Thread Alan Hodgson
On December 28, 2010, Adrian Klaver wrote: > On 12/28/2010 07:40 PM, Bob Pawley wrote: > >> Open the file in Wordpad and see if it looks better. > >> > >> I downloaded an sql editor and it looks the same in it as well. > >> > >> At least the editor will make it easier to fix the problem. However

Re: [GENERAL] B-tree index with sorting question

2010-12-28 Thread Bricklen
On 2010-12-28, at 5:22 PM, Tom Lane wrote: > bricklen writes: >> In the docs at >> http://www.postgresql.org/docs/9.0/static/sql-createindex.html, >> I see that you can build indexes that include ordering. >> Eg. create index t_col_idx on t (col DESC NULLS LAST); > >> Does that mean that the i

Re: [GENERAL] Restore problem

2010-12-28 Thread Bob Pawley
-Original Message- From: Alan Hodgson Sent: Tuesday, December 28, 2010 8:12 PM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Restore problem On December 28, 2010, Adrian Klaver wrote: On 12/28/2010 07:40 PM, Bob Pawley wrote: >> Open the file in Wordpad and see if it looks

Re: [GENERAL] Restore problem

2010-12-28 Thread Scott Marlowe
On Tue, Dec 28, 2010 at 8:05 PM, Bob Pawley wrote: > What program are you using to look at the plain text file? > > > Notepad Did you at some point open the backup file with notepad, make a change and then save it? If so notepad may have permanently mangled the backup. If so, do you have an ori

Re: [GENERAL] Restore problem

2010-12-28 Thread Alan Hodgson
On December 28, 2010, "Bob Pawley" wrote: > It's often a good idea to maintain function definitions outside the > database, > under version control, and apply them to the database from there. > > I would appreciate a more detailed explanation of this. Treat them like source code. > > Bob > >

Re: [GENERAL] Concatenating several rows with a semicolon

2010-12-28 Thread Dmitriy Igrishin
2010/12/29 Alexander Farber > Hello Dmitriy, > > I think this combination of attributes and children: > > >> >> > > >> >> > > >> >> > ... etc ... > >> >> > > > will be a good balance between size and my original problem > (combining user data and their stats in 1 chunk of information). > > A

Re: [GENERAL] B-tree index with sorting question

2010-12-28 Thread Guillaume Lelarge
Le 29/12/2010 05:28, Bricklen a écrit : > On 2010-12-28, at 5:22 PM, Tom Lane wrote: > >> bricklen writes: >>> In the docs at >>> http://www.postgresql.org/docs/9.0/static/sql-createindex.html, >>> I see that you can build indexes that include ordering. >>> Eg. create index t_col_idx on t (col