Re: [ADMIN] please please please PLEASE help!

2004-07-29 Thread Andrew Biagioni
Steve, I'm not as much of an expert on PostgreSQL as others, but at least I have SOME answer. The way to leverage the multi-disk capability is to use RAID, either software or hardware, rather than trying to twist the PostgreSQL structure and files to do so. RAID (I forget what the acronym stan

Re: [ADMIN] Insert binary data on postgre

2004-06-24 Thread Andrew Biagioni
Eduardo, your problem is the way you are submitting the string. Since it's a binary, it can contain any "character" value (from 0 to 255) and PostgreSQL treats certain characters as special characters. The main example you're running into is the quote character. If you try to submit a string

Re: [ADMIN] Database, Table Names are resulting in lowercase

2004-06-24 Thread Andrew Biagioni
If you specify an object's name without quoting it, e.g.: ALTER TABLE MyTable ADD COLUMN MyNewCol INT4; then it is read as all lower case. This means, that table "mytable" will be altered, and the new column will be called "mynewcol". To force mixed or upper case, you quote the names, e.g.:

Re: [ADMIN] Syntax question

2004-06-07 Thread Andrew Biagioni
Jeff, you need to look under "\?" (psql commands), not "\h" (SQL commands). Anyway, what you need is: \c[onnect] [DBNAME|- [USER]] connect to new database (currently "[...]") Jeff Stout wrote: I am fairly new to postgres, I need to know how to switch databases once I'm in a psql se

Re: [ADMIN] E-R Tool

2004-06-07 Thread Andrew Biagioni
http://www.fabforce.net/downloads.php Jaime Casanova wrote: Hello, Db-designer is a nice tool, can work with importing Oracle databases, and use it with PG and >MySQL. Hope this helps BR, Miguel Can someone suggest an E-R tool that will read a _PG_ database and create an E-R diagram - crows feet

Re: [ADMIN] two versions on same linux

2004-05-23 Thread Andrew Biagioni
I would recommend one on the default port (5432).  I have also used, without problems (on RedHat 7.3) ports 5434, 5435, 5436, 5437, 15437. What I would do (more experienced people, pls. correct me) is to check your /etc/services file to see what ports are used for what (e.g.:     ...     cfeng

[ADMIN] plpgsql editor(s)?

2004-04-01 Thread Andrew Biagioni
Can anyone recommend an editor (windows OR linux) for writing plpgsql code, that might be friendlier than a standard text editor? Nice features I can think of might be: - smart tabbing (1 tab = N spaces) - code coloring (esp. quoted strings!) - parens/brackets matching Thanks, Andrew

Re: [ADMIN] Spontaneous PostgreSQL Server Reboot?

2004-03-31 Thread Andrew Biagioni
scott.marlowe wrote: On Tue, 30 Mar 2004, Andrew Biagioni wrote: Alex, the answer is "no" to all of these. We are a tiny start-up (2 guys, and we do our own cleaning); ambient temperature varies significantly but is not related to the failure, and one machine starts beeping whe

Re: [ADMIN] Spontaneous PostgreSQL Server Reboot?

2004-03-30 Thread Andrew Biagioni
sion/configuration (second machine); now we're out of things to blame, except maybe unusually bad luck... Thanks, Andrew Alex Satrapa wrote: Andrew Biagioni wrote: On three different machines running the same PostgreSQL version (7.3.5) on Linux and almost identical databases,

Re: [ADMIN] Spontaneous PostgreSQL Server Reboot?

2004-03-30 Thread Andrew Biagioni
Tom Lane wrote: Andrew Biagioni <[EMAIL PROTECTED]> writes: On three different machines running the same PostgreSQL version (7.3.5) on Linux and almost identical databases, I have been plagued by occasional, unexplainable (to me) reboots of the computer. Postgres can *not* cause a

[ADMIN] Spontaneous PostgreSQL Server Reboot?

2004-03-29 Thread Andrew Biagioni
he /usr/local/pgsql/ partition. Thanks for any and all help! Andrew Biagioni ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: R: [ADMIN] slow seqscan after vacuum analize

2004-02-05 Thread Andrew Biagioni
Iain wrote: Yes, you are right but it wasn't the case this time, I have run the explain plenty of times with same results. I think that the reason was that I made a simple VACUUM, after a VACUUM FULL ANALYZE (1h!!) things are ok I

Re: [ADMIN] Selects query inside function must read commited data

2004-01-25 Thread Andrew Biagioni
In the v7.3 docs: http://www.postgresql.org/docs/7.3/interactive/transaction-iso.html#XACT-READ-COMMITTED Read Committed is the default isolation level in PostgreSQL. When a transaction runs on this isolation level, a SELECT query sees only data committed before the query began; it never sees

Re: [ADMIN] Mis-interpreted extended character

2003-12-15 Thread Andrew Biagioni
Chris, Thanks -- your answer is 90% of what I need!  As for the other 10%: Chris wrote: Our database ( (PostgreSQL) 7.3.5 ) uses Unicode encoding: [...] For some reason, If I try to use an extended character (ASCII code > 127) in a string, I get this peculiar res

Re: [ADMIN] Trigger function

2003-12-14 Thread Andrew Biagioni
Kent, I suggest you read: http://www.postgresql.org/docs/7.3/interactive/plpgsql-trigger.html I found it very useful myself, and it should answer (almost?) all your questions. Note that you will need to add either pl/pgsql or pl/TCL to your database to do triggers. The docs. for both langu

[ADMIN] Mis-interpreted extended character

2003-12-13 Thread Andrew Biagioni
Our database ( (PostgreSQL) 7.3.5 ) uses Unicode encoding:     egreek=# \l     List of databases         Name |  Owner   | Encoding     -+--+-- egreek  | andrew   | UNICODE For some reason, If I try to use an extended character (ASCII code >

[ADMIN] Matching indexes on int8 columns?

2003-10-29 Thread Andrew Biagioni
know enough to appreciate? Inquiring minds want to know... Thanks, Andrew Biagioni ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

[ADMIN] Matching indexes on int8 columns

2003-10-24 Thread Andrew Biagioni
ion between int4 and int8. So finally, my question. Why is this behavior present? Is it actually a feature that I don't know enough to appreciate? Inquiring minds want to know... Thanks, Andrew Biagioni ---(end of broadcast)-

Re: [ADMIN] Cross-DB linking?

2003-09-11 Thread Andrew Biagioni
bases. You can get some primitive (but >quite functional) cross database action with the contrib/dblink package. > >On Thu, 11 Sep 2003, Andrew Biagioni wrote: > >> I am thinking of separating my data into various DBs (maybe on the same server, >> probably not) -- mostly

[ADMIN] Cross-DB linking?

2003-09-11 Thread Andrew Biagioni
I am thinking of separating my data into various DBs (maybe on the same server, probably not) -- mostly for performance/stability/backup reasons -- but I have a considerable amount of foreign keys, views, and queries that would need to work across DBs if I were to split things the way I want to.

Re: [ADMIN] Can not deleted all record

2003-08-29 Thread Andrew Biagioni
Yudha, "ERROR: Query was cancelled." usually means that the query is taking too long, and you exceeded the maximum time specified in your postgresql.conf file. The parameter you want to change is: statement_timeout = X where X is in seconds; set X = 0 to turn off the timeout completely (quer

Re: [ADMIN] Replication/Failover/HA solution

2003-07-22 Thread Andrew Biagioni
7/22/03 3:32:03 PM, Andrew Sullivan <[EMAIL PROTECTED]> wrote: >On Mon, Jul 21, 2003 at 06:11:15PM -0400, Renney Thomas wrote: >> I am having a hard time selecting a Replication/Failover/HA solution for >> PGSQL. What is troubling is the number of solutions available in various >> states of deve

Re: [ADMIN] Database growth problem

2003-07-19 Thread Andrew Biagioni
7/18/03 10:06:29 AM, "scott.marlowe" <[EMAIL PROTECTED]> wrote: >On Thu, 17 Jul 2003, mlaks wrote: > >> Hi, >> >> I have about 15 different PC's running RedHat 7.3 Linux, each running the >> same database backed application (I use Postgresql 7.2.1 for the database) >> on each machine. > >Upg

Re: [HACKERS] [ADMIN] problems with pg_restore

2003-07-16 Thread Andrew Biagioni
unt it a vote in favor. regards, tom lane ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org         Andrew Biagioni

Re: [ADMIN] Installazione Postgres

2003-07-13 Thread Andrew Biagioni
Monica, Come ha suggerito Gaetano Mendola, per quanto ho visto tutti gli utenti di questa lista comunicano in inglese; e sicuramente, la maggior parte di quelli che hanno le risposte sembrano non avere nomi italiani. Se hai gia` trovato la risposta al tuo problema, benissimo. Se no: se il

Re: [ADMIN] defined max length

2003-06-08 Thread Andrew Biagioni
I recommend you look at chapter 5, "Data Types", of the PostgreSQL User's Guide. [EMAIL PROTECTED] wrote: Hello ALL. Where can I find (and set if need) all defined max length restrictions of PostgreSQL server. for example, max lenght of VARCHAR, or any variable-length array, or max query len

Re: [ADMIN] Did I something wrong?

2003-05-27 Thread Andrew Biagioni
You are not transparent, although you do seem to be somewhat sensitive. I saw at least one posting from you that was answered by 2 different people. If you got no answers to your questions, it may be that: - nobody who knew the answer saw your posting (there are lots of postings, and not many p

Re: [ADMIN] Outer Join

2003-04-02 Thread Andrew Biagioni
All the docs. are in: http://www.postgresql.org/docs/ If you select "Interactive Documentation" you can do searches (recommended for your specific question), otherwise you can go to "Static Documentation" and look up the syntactic details of "SELECT". Andrés Repossi wrote: Hi, I'm trying to

Re: [ADMIN] Performance problems with Postgresql

2003-03-20 Thread Andrew Biagioni
I didn't see a response to your question yet, so I'll throw in my 2 cents. I had similar questions as yours;  I found my answers in section 3.5 of  the Administrator's Guide (I looked at v.7.2.x, but it's also in v7.3.1).  They are all available at         http://www.us.postgresql.org/users-l

Re: [ADMIN] How can I make note of time taken by each query to execute in Triggers

2003-01-22 Thread Andrew Biagioni
One of the options you can specify in postgresql.conf, is to write to log the amount of time of each query. That should give you the precision you need, although of course you need to look at a log file and not at a DB table... If you try this approach, I recommend you specify printing out the

Re: [ADMIN] Stalled post to pgsql-admin

2003-01-21 Thread Andrew Biagioni
Be careful with your pg_hba.conf entries (read the comments in the file itself, they are lengthy but useful).  What you configured (below) will allow anyone to connect to your database from any machine without validation, as long as their IP address has the first two blocks equal to your machin

Re: [ADMIN]

2003-01-20 Thread Andrew Biagioni
First of all your "su postgres" problem. You will note, that the first time you executed "su postgres" you were root (and thus didn't need a password), the second time you were a non-root user, zf2linux, and thus you DO need a password. The second problem is who postgreSQL thinks you are. Wha

[ADMIN] Deadlock Checker doesn't see foreign-key locks

2003-01-20 Thread Andrew Biagioni
It appears to me that the Deadlock Checker doesn't see (and thus release) foreign-key-based locks (see below for details). Am I missing something? Is there a configuration item I am unaware of? As far as I can tell (yes, I tested thoroughly) if I create a normal deadlock situation as follows,

Re: [ADMIN] Deadlock Checker doesn't see foreign-key locks

2003-01-14 Thread Andrew Biagioni
Stephan Szabo wrote: On Mon, 13 Jan 2003, Andrew Biagioni wrote: It appears to me that the Deadlock Checker doesn't see (and thus release) foreign-key-based locks (see below for details). Am I missing something? Is there a configuration item I am unaware of?

[ADMIN] Deadlock Checker doesn't see foreign-key locks

2003-01-13 Thread Andrew Biagioni
It appears to me that the Deadlock Checker doesn't see (and thus release) foreign-key-based locks (see below for details). Am I missing something? Is there a configuration item I am unaware of? As far as I can tell (yes, I tested thoroughly) if I create a normal deadlock situation as follows, th