Re: [ADMIN] template1 database

2005-03-09 Thread Michael Fuhr
On Thu, Mar 10, 2005 at 08:17:03AM +, Eimantas Vai??i??nas wrote: > I've recently started using PgSQL and i must say it gose quite good as far as > i can say. Just been wondering how important is template1 database to PgSQL? > What would happen if i drop this database together with postgres

Re: [ADMIN] template1 database

2005-03-09 Thread Tom Lane
Eimantas =?utf-8?q?Vai=C4=8Di=C5=ABnas?= <[EMAIL PROTECTED]> writes: > Just been wondering how important is template1 database to PgSQL? The database server itself doesn't care, but there are enough client-side tools that assume template1 exists that you would not find life pleasant if you do thi

[ADMIN] template1 database

2005-03-09 Thread Eimantas Vaičiūnas
Hi list, I've recently started using PgSQL and i must say it gose quite good as far as i can say. Just been wondering how important is template1 database to PgSQL? What would happen if i drop this database together with postgres user. -- Eimantas VaiÄiÅnas VU SkaiÄiavimo centras --

Re: [ADMIN] Visual data model creation / maintenance tools

2005-03-09 Thread Ben Kim
> I am interested in what people here think are good tools (free or not) for > creating / maintaining a pg data model. A layout view for relationships is P.S. If you are interested in only the layout view of relationship and not designing, a trivial, despised but useful one is M$ Access. (Sorry f

Re: [ADMIN] Schemas to Search_path

2005-03-09 Thread Subbiah, Stalin
I created schema name "foo_schema" different from user name "foo". However, when I created the schema, I had specified authorization set to foo user. Does that mean, if the owner of the schema and schema name are different, then only way, is to set through alter user set or search path correct ?

Re: [ADMIN] Schemas to Search_path

2005-03-09 Thread Tom Lane
"Subbiah, Stalin" <[EMAIL PROTECTED]> writes: > I logged into foodb as foo user and tried to create a table. Bang! > ERROR: no schema has been selected to create in. search_path had $user, > public the default ones, shouldn't the table get created in user's > authorized schema. Which one? Now, i

[ADMIN] Schemas to Search_path

2005-03-09 Thread Subbiah, Stalin
Title: Schemas to Search_path I was playing around with schemas today to understand how it would fit in our application design. I couldn't understand why I got to set search_path to schema name everytime I login to psql. This is what I did. -ceated a user "foo" with createdb privilege as p

Re: [ADMIN] Functions and transactions

2005-03-09 Thread Tom Lane
Kris Kiger <[EMAIL PROTECTED]> writes: > Here is my problem. I have a function that is triggered on insert. For > simplicity's sake, lets say the function looks like this: > CREATE OR REPLACE FUNCTION dostuff_on_insert() RETURNS TRIGGER AS ' > DECLARE lockrows RECORD; > BEGIN > select into

Re: [ADMIN] Functions and transactions

2005-03-09 Thread Tsirkin Evgeny
I guess first we should understand why the insert B waits at all,the insert A did not commit ,right ,then how did it found any pkey_id = NEW.pkey_id? That means you have already had those while starting your experiment. So ,insert B wait for those "old" rows not for your insert (i mean an INSER

Re: [ADMIN] readline ?

2005-03-09 Thread John DeSoi
On Mar 9, 2005, at 4:24 PM, Scott Marlowe wrote: assuming you're on an rpm based system, look for the readline-devel rpm package and install it. Same a go for a few other packages, like zlib-devel. And if not and you don't need readline just use ./configure --without-readline John DeSoi, Ph.D. htt

Re: [ADMIN] readline ?

2005-03-09 Thread Scott Marlowe
On Wed, 2005-03-09 at 15:14, Gaurav Arora wrote: > hi all > > please help me... I am trying to instal > PostgreSQL 7.4.6 and when I run the command > ./configure, I get the error... > > configure: error: readline library not found > > Please help ... !!! assuming you're on an

[ADMIN] readline ?

2005-03-09 Thread Gaurav Arora
hi all please help me... I am trying to instal PostgreSQL 7.4.6 and when I run the command ./configure, I get the error... configure: error: readline library not found Please help ... !!! regards Gaurav Arora __ Cele

Re: [ADMIN] Functions and transactions

2005-03-09 Thread Kris Kiger
transaction_isolation --- read committed Running Postgres 7.4 btw Kris Tsirkin Evgeny wrote: What transaction level are you using? Evgeny. Kris Kiger wrote: Here is my problem. I have a function that is triggered on insert. For simplicity's sake, lets say the function looks

Re: [ADMIN] Functions and transactions

2005-03-09 Thread Tsirkin Evgeny
What transaction level are you using? Evgeny. Kris Kiger wrote: Here is my problem. I have a function that is triggered on insert. For simplicity's sake, lets say the function looks like this: CREATE OR REPLACE FUNCTION dostuff_on_insert() RETURNS TRIGGER AS ' DECLARE lockrows RECORD; BEGIN

Re: [ADMIN] Slow Update

2005-03-09 Thread Adrian Engelbrecht
If it is necessary for you to comapre each row with a list of 26 possible values (VARIABLES) in the IN clause and not do a replacement of all values in column1 with "0" as suggested previously, you might want to place the 26000 variables in a temporary table that is either sorted physically in the

[ADMIN] Functions and transactions

2005-03-09 Thread Kris Kiger
Here is my problem. I have a function that is triggered on insert. For simplicity's sake, lets say the function looks like this: CREATE OR REPLACE FUNCTION dostuff_on_insert() RETURNS TRIGGER AS ' DECLARE lockrows RECORD; BEGIN select into lockrows * from table1 where pkey_id = NEW.pkey_id f

Re: [ADMIN] Tablespace On 8.0 (Windows)

2005-03-09 Thread Magnus Hagander
> How tablespaces are implemented in Windows if there's no > symbolic links? It uses NTFS Junctions, which is bscailly symbolic links for directories. //Magnus ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [ADMIN] [SQL] [SOLVED] Postgres schema comparison.

2005-03-09 Thread Stef
Hi all, If anyone is interested, here's the final solution that I'm using to build a list of tables and their md5sums based on what the psql interface queries when you do '\d [TABLE NAME]' I attached the function I created, and this is the SQL I run : select relname||':'||get_table_checksum(relna

[ADMIN] Tablespace On 8.0 (Windows)

2005-03-09 Thread gustavog
How tablespaces are implemented in Windows if there's no symbolic links? Thanks. ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [ADMIN] Slow Update

2005-03-09 Thread Bruno Wolff III
On Wed, Mar 09, 2005 at 11:44:33 -0300, Ricardo Valença de Assis <[EMAIL PROTECTED]> wrote: > Hi everydoby! > > I have a table with more than 26000 rows and I need to use update a > column of this tables on all lines according with a column. So, I need to > use update 26000 times correct? I

Re: [ADMIN] Table Partitioning

2005-03-09 Thread Thomas F . O'Connell
Ken, Table partitioning doesn't really exist, to the best of my knowledge, but tablespaces, which are new to 8.0, allow for partitioning of data (individual tables, indexes) across multiple locations on disk. See http://www.postgresql.org/docs/8.0/static/sql-createtablespace.html -tfo -- Thomas

[ADMIN] Slow Update

2005-03-09 Thread Ricardo Valença de Assis
Hi everydoby! I have a table with more than 26000 rows and I need to use update a column of this tables on all lines according with a column. So, I need to use update 26000 times correct? I tried to use a this command: "UPDATE database SET column1=0 WHERE column2 in (VARIABLES)", where VARIABL

Re: [ADMIN] Too many clients----A big problem for my team

2005-03-09 Thread Daniel Rubio
I had the same problem a few weeks ago. Was happening that our developers using Tomcat, were using connection pools, and stoping and restarting their aplications which causes to leave these connection opened and opening some new. Look in the servlet engine (or what they use) for the number of c

Re: [SQL] [ADMIN] Postgres schema comparison.

2005-03-09 Thread KÖPFERL Robert
|-Original Message- |From: Goulet, Dick [mailto:[EMAIL PROTECTED] |Sent: Montag, 07. März 2005 16:33 |To: John DeSoi; Stef |Cc: pgsql-ADMIN@postgresql.org; pgsql-sql@postgresql.org |Subject: Re: [SQL] [ADMIN] Postgres schema comparison. | | | My favorite for this task is WinSql available f