Re: [GENERAL] Using pg_dump in a cron

2005-06-02 Thread Patrick . FICHE
Thanks Tom, You are absolutely right, the commandt stty istrip was the first line of my .profile... Regards, Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 -

Re: [GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread Tino Wildenhain
Am Freitag, den 03.06.2005, 00:36 +0200 schrieb Peter Eisentraut: > On a particular system, loading 1 million rows (100 bytes, nothing > fancy) into PostgreSQL one transaction at a time takes about 90 > minutes. Doing the same in MySQL/InnoDB takes about 3 minutes. InnoDB > is supposed to have

Re: [GENERAL] SQL call to get pid of current connection

2005-06-02 Thread David Parker
That certainly looks like it! Thanks! - DAP >-Original Message- >From: Michael Fuhr [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 02, 2005 8:47 PM >To: Bruno Wolff III; David Parker; postgres general >Subject: Re: [GENERAL] SQL call to get pid of current connection > >On Thu, Jun 02,

Re: [GENERAL] SQL call to get pid of current connection

2005-06-02 Thread Tom Lane
"David Parker" <[EMAIL PROTECTED]> writes: > Is there a function call that will return the pid of the postgres > process associated with the current client connection? libpq makes this available as PQbackendPID(). Dunno about other client libraries. regards, tom lane ---

Re: [GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Something ain't kosher. I tried the same test with the latest and greatest DBI, DBD::Pg, and PostgreSQL, tuned everything up, and still got around 10,000 transactions per minute or so. There is no way MySQL is doing an order of magnitude or more bett

Re: [GENERAL] SQL call to get pid of current connection

2005-06-02 Thread Michael Fuhr
On Thu, Jun 02, 2005 at 05:02:14PM -0500, Bruno Wolff III wrote: > On Thu, Jun 02, 2005 at 17:04:22 -0400, > David Parker <[EMAIL PROTECTED]> wrote: > > Is there a function call that will return the pid of the postgres > > process associated with the current client connection? > > I thought I re

Re: [GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > On a particular system, loading 1 million rows (100 bytes, nothing > fancy) into PostgreSQL one transaction at a time takes about 90 > minutes. Doing the same in MySQL/InnoDB takes about 3 minutes. What sort of hardware, exactly? Simple division s

[GENERAL] PostgreSQL Developer Network

2005-06-02 Thread Gevik babakhani
Dear People,   After a long time of various timeouts, I managed to get back on track developing the long promised PQDN website. As some of you might know. I was working on a project called the PostgreSQL Developer Network.   The websites (which is a la MSDN) is meant to provide a knowl

Re: [GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread David Fetter
On Fri, Jun 03, 2005 at 12:36:29AM +0200, Peter Eisentraut wrote: > On a particular system, loading 1 million rows (100 bytes, nothing > fancy) into PostgreSQL one transaction at a time takes about 90 > minutes. Doing the same in MySQL/InnoDB takes about 3 minutes. > InnoDB is supposed to have a s

Re: [GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread Joshua D. Drake
Peter Eisentraut wrote: On a particular system, loading 1 million rows (100 bytes, nothing fancy) into PostgreSQL one transaction at a time takes about 90 minutes. Doing the same in MySQL/InnoDB takes about 3 minutes. InnoDB is supposed to have a similar level of functionality as far as th

[GENERAL] PostgreSQL vs. InnoDB performance

2005-06-02 Thread Peter Eisentraut
On a particular system, loading 1 million rows (100 bytes, nothing fancy) into PostgreSQL one transaction at a time takes about 90 minutes. Doing the same in MySQL/InnoDB takes about 3 minutes. InnoDB is supposed to have a similar level of functionality as far as the storage manager is concer

Re: [GENERAL] adding columns with defaults is not implemented

2005-06-02 Thread Joshua D. Drake
Marcelo wrote: Hi, Thanks for your reply, but I have some doubts. Are yoy sugesting I create the column as an Integer then change it to Serial? in Pgsql 7 you cant change a column type. Serial is not a real data type. Do this. create table foo (bar integer not null); create sequence foo_bar_s

Re: [GENERAL] adding columns with defaults is not implemented

2005-06-02 Thread Sven Willenberger
On Thu, 2005-06-02 at 17:47 -0400, Marcelo wrote: > Hi, > Thanks for your reply, but I have some doubts. > > Are yoy sugesting I create the column as an Integer then change it to > Serial? in Pgsql 7 you cant change a column type. > > If I create the column as an int then add a default value, how

Re: [GENERAL] SQL call to get pid of current connection

2005-06-02 Thread David Parker
Yeah, simple enough. I just wanted to make sure I wasn't duplicating something that was already there. Thanks. - DAP >-Original Message- >From: Bruno Wolff III [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 02, 2005 6:02 PM >To: David Parker >Cc: postgres general >Subject: Re: SQL cal

Re: [GENERAL] SQL call to get pid of current connection

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 17:04:22 -0400, David Parker <[EMAIL PROTECTED]> wrote: > Is there a function call that will return the pid of the postgres > process associated with the current client connection? I thought I remembered seeing one, but I looked through the development docs and didn't see

Re: [GENERAL] adding columns with defaults is not implemented

2005-06-02 Thread Marcelo
Hi, Thanks for your reply, but I have some doubts. Are yoy sugesting I create the column as an Integer then change it to Serial? in Pgsql 7 you cant change a column type. If I create the column as an int then add a default value, how can I make this default value increment with each insert? Tha

[GENERAL] SQL call to get pid of current connection

2005-06-02 Thread David Parker
Is there a function call that will return the pid of the postgres process associated with the current client connection? - DAP--David Parker    Tazz Networks    (401) 709-5130   

Re: [GENERAL] adding columns with defaults is not implemented

2005-06-02 Thread Scott Marlowe
On Thu, 2005-06-02 at 15:29, Marcelo wrote: > Hello, > Using Postgres 7.4, I am trying to perform an "alter table > temptable add column "myCol" serial" > > It gives the following msg > ERROR: adding columns with defaults is not implemented > > You cannot add a column that is serial in a table

[GENERAL] adding columns with defaults is not implemented

2005-06-02 Thread Marcelo
Hello, Using Postgres 7.4, I am trying to perform an "alter table temptable add column "myCol" serial"   It gives the following msg ERROR:  adding columns with defaults is not implemented   You cannot add a column that is serial in a table which already has data in postgres 7.   Is there a w

Re: [GENERAL] Limits of SQL

2005-06-02 Thread Sean Davis
A couple of links: http://www.dbazine.com/ofinterest/oi-articles/celko24 http://www.dbmsmag.com/9603d06.html On Jun 2, 2005, at 2:33 AM, Joachim Zobel wrote: Hi. I am looking for a way to write a SELECT that finds connectivity components of a graph or at least for one that given two nodes de

Re: [GENERAL] Limits of SQL

2005-06-02 Thread Oleg Bartunov
I'm not sure if it's relevant to your question http://www-2.cs.cmu.edu/~cache/pg_graph/ pg_graph provides a way of handling graph-based data structures within the relational database PostgreSQL. In particular, it provides a convenient means of inserting graphs as BLOB-like objects in the RDBMS.

Re: [GENERAL] Limits of SQL

2005-06-02 Thread Ben
You mean, you want to be able to say something like: select isConnected(a,b) and get back a true/false, or maybe the path? That seems quite doable in SQL, assuming you either store those results and simply use sql to retrieve them, or use a stored proc to compute the result each time. On Thu,

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 18:00:17 +0100, Richard Huxton wrote: > > Certainly, but if the text in the logfile row is the same, then hashing > isn't going to make a blind bit of difference. That's the root of my > concern, and something only Dinesh knows. Sure it is. Because the hash can be use

[GENERAL] Limits of SQL

2005-06-02 Thread Joachim Zobel
Hi. I am looking for a way to write a SELECT that finds connectivity components of a graph or at least for one that given two nodes determines if there is a path between them. It seems that this is not possible, no matter what graph representation I choose. Which constructs from set theory are mis

Re: [GENERAL] Deleting orphaned records to establish Ref Integrity

2005-06-02 Thread Greg Stark
Tom Lane <[EMAIL PROTECTED]> writes: > "Roman F" <[EMAIL PROTECTED]> writes: > > > DELETE FROM child_table WHERE parentid NOT IN > > (SELECT parentid FROM parent_table) > > Another idea is to try an outer join: > > SELECT child_table.parentid INTO tmp_table > FROM child_table LEFT

Re: [GENERAL] writting a large store procedure

2005-06-02 Thread Russ Brown
Tony Caduto wrote: Sean, I am tooting my own horn here, but I would recomend PG Lightning Admin. It has a incredible function editor (and query editor) that is based on Synedit(synedit.sourceforge.net), and has full code completion that includes all the Postgres built in functions,exception nam

Re: [GENERAL] Using pg_dump in a cron

2005-06-02 Thread Vivek Khera
On Jun 2, 2005, at 9:43 AM, [EMAIL PROTECTED] wrote:Your "cron" job on ALIS. $HOME/.profile; pg_dump alis -U postgres -f $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1   produced the following output:   stty: : No such device or address What's wrong with it ? Your .profile executes the st

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Richard Huxton
Bruno Wolff III wrote: On Thu, Jun 02, 2005 at 13:40:53 +0100, Richard Huxton wrote: Actually, Dinesh didn't mention he was using this for the speed of lookup. He'd defined the columns as being the PRIMARY KEY, presumably because he feels they are/should be unique. Given that they are rows

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 13:40:53 +0100, Richard Huxton wrote: > > Actually, Dinesh didn't mention he was using this for the speed of > lookup. He'd defined the columns as being the PRIMARY KEY, presumably > because he feels they are/should be unique. Given that they are rows > from a logfile

Re: [GENERAL] postgresql 8 abort with signal 10

2005-06-02 Thread Alexandre Biancalana
I changed from postgresql to mysql and everything now is great ;) Same machine, same os, etc... On 6/2/05, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > # [EMAIL PROTECTED] / 2005-05-03 17:56:53 -0300: > > The FreeBSD is the last STABLE version. I can try to change some > > hardware, I already

Re: [GENERAL] SRFs returning records from a view

2005-06-02 Thread Mark Lubratt
AAARRRGGGHHH... Now I understand you, Josh. Sorry. You are correct. Thanks! Mark On Jun 1, 2005, at 4:39 PM, Joshua D. Drake wrote: [EMAIL PROTECTED] wrote: Hello! I have a view that I'm putting into a report in my application. I'd like to get several blank lines returned by the view as w

Re: [GENERAL] Stats not getting updated....

2005-06-02 Thread Himanshu Baweja
Tom Lane <[EMAIL PROTECTED]> wrote: > backends only ship stats to the collector at transaction commit.> Or maybe it's at the end of processing a client command. It's certainly> not continuous.   yup that i already know but is there any way to make it do the update more frequently 4 times i

Re: [GENERAL] Using pg_dump in a cron

2005-06-02 Thread Tom Lane
[EMAIL PROTECTED] writes: > The dump execution is OK but my user gets a mail containing the = > following > message : > > Your "cron" job on ALIS > . $HOME/.profile; pg_dump alis -U postgres -f > $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1 > > produced the following output: > > s

Re: [SQL] [GENERAL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Jaime Casanova
On 6/2/05, Richard Huxton wrote: > KÖPFERL Robert wrote: > > To me it seems that the definer of this table missed the concept index ... > > or the concept database > > One usually looks up data using a key, but if the whole row is the key, what > > data shall be looked up. > > > So short story lo

Re: [GENERAL] hpw to Count without group by

2005-06-02 Thread Yudie Pg
I do not believe you can do this without a subquery - you are tryingto get 2 separate pieces of information from your data   * some data about the record having MAX(rank) for each categoryand  * the count of records in each category   Hi, I guess i try to answer my own question which end up with c

Re: [GENERAL] postgresql 8 abort with signal 10

2005-06-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-05-03 17:56:53 -0300: > The FreeBSD is the last STABLE version. I can try to change some > hardware, I already changed memory, what can I try now ? the processor > ? motherboard ?? > On 5/3/05, Scott Marlowe <[EMAIL PROTECTED]> wrote: > > On Tue, 2005-05-03 at 15:04,

Re: [GENERAL] Stats not getting updated....

2005-06-02 Thread Tom Lane
Richard Huxton writes: > It is possible that during very busy periods the stats don't get > recorded - that's part of the design. IIRC, backends only ship stats to the collector at transaction commit. Or maybe it's at the end of processing a client command. It's certainly not continuous.

Re: [GENERAL] Old problem needs solution

2005-06-02 Thread Tom Lane
"Gerald D. Anderson" <[EMAIL PROTECTED]> writes: > So, the plot thickens. Is there somewhere I can go tweak a few bytes to > make it think it's 7.3? No. That's not what you want anyway; you want a late 7.4 build, just one without the hierarchical-queries patch. I dunno enough about Gentoo to s

[GENERAL] Automate Postgres Backup In windows

2005-06-02 Thread Shaun Clements
I am trying to automate a postgres database data and schema dump through windows. Does anyone have any suggestions on best way to do so. Thanks   Kind Regards,Shaun Clements

[GENERAL] Using pg_dump in a cron

2005-06-02 Thread Patrick . FICHE
Hi all,   I'm using PostgreSQL 8.0.2 on Solaris 10. I would like to manage an automatic backup of my database.   Here is the line in the cron : 37 * * * * . $HOME/.profile; pg_dump alis -U postgres -f $AQSADIR/data/backup/alis_data.sql -a -d >/dev/null 2>&1 The dump execution is OK but my

Re: [GENERAL] writing a file using procedure

2005-06-02 Thread Michael Fuhr
On Thu, Jun 02, 2005 at 11:00:56AM +0100, Richard Huxton wrote: > Nageshwar Rao wrote: > >Can we write/read a file in postgresql procedure ? > > Using one of the "untrusted" languages, yes. They can only be used by an > administrator but have access to the full capabilities of the underlying > p

Re: [SQL] [GENERAL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Richard Huxton
KÖPFERL Robert wrote: To me it seems that the definer of this table missed the concept index ... or the concept database One usually looks up data using a key, but if the whole row is the key, what data shall be looked up. So short story long: Remove data from your index. The data column seem

Re: [GENERAL] Old problem needs solution

2005-06-02 Thread Gerald D. Anderson
Ok, well it looks like Richard owes Tom a lunch, or that's my best guess anyway. I am running Gentoo, as far as that particular patch, I'm unsure, but if it's installed by default then yes. So, I've pulled down the earliest ebuild I can get which is 7.3.6. Get it installed and go to start it

Re: [GENERAL] Determining when a row was inserted

2005-06-02 Thread Terry Lee Tucker
I don't think there is a way to do that. You'll have to create an audit table and a rule to update it or you'll have to add a column to the table and a trigger to update it. On Thursday 02 June 2005 01:22 am, Eisenhut, Glenn saith: > Folks - hi > > Is it possible to determine when a row was inse

Re: [GENERAL] Determining when a row was inserted

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 06:22:01 +0100, "Eisenhut, Glenn" <[EMAIL PROTECTED]> wrote: > > > Folks - hi > > Is it possible to determine when a row was inserted into a table using the > system catalogs or such. > I have the situation where I need to find out when a user was added to a user > ta

Re: [GENERAL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 17:48:47 +0530, Dinesh Pandey <[EMAIL PROTECTED]> wrote: > Yes I am storing some "error messages" in data column, and the PK columns > are party of search criteria. If you need to be able to search based on the entire stored error message, than you might try adding an ind

[GENERAL] Determining when a row was inserted

2005-06-02 Thread Eisenhut, Glenn
Folks - hi Is it possible to determine when a row was inserted into a table using the system catalogs or such. I have the situation where I need to find out when a user was added to a user table - the table was not setup with a date to track this. Thanks Glenn **

Re: [GENERAL] hpw to Count without group by

2005-06-02 Thread Edmund Bacon
[EMAIL PROTECTED] (Yudie Pg) writes: > Hello, > I have a table, structure like this: > create table product( > sku, int4 not null, > category int4 null, > display_name varchar(100) null, > rank int4 null > ) > let say example data: > sku, category, display_name > === > 10

Re: [GENERAL] interval integer comparison

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 13:26:32 +0200, Havasvölgyi Ottó <[EMAIL PROTECTED]> wrote: > > I tried to simulate this unexpected result, but with no success. Here in > Hungary we had daylight saving this year on the 27th of March > (http://webexhibits.org/daylightsaving/b.html). So I tried these: >

Re: [GENERAL] writting a large store procedure

2005-06-02 Thread Tony Caduto
Sean, I am tooting my own horn here, but I would recomend PG Lightning Admin. It has a incredible function editor (and query editor) that is based on Synedit(synedit.sourceforge.net), and has full code completion that includes all the Postgres built in functions,exception names,types etc etc, and

Re: [GENERAL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread Bruno Wolff III
On Thu, Jun 02, 2005 at 14:08:54 +0200, KÖPFERL Robert <[EMAIL PROTECTED]> wrote: > To me it seems that the definer of this table missed the concept index ... > or the concept database > One usually looks up data using a key, but if the whole row is the key, what > data shall be looked up. You s

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Dinesh Pandey
Yes I am storing some “error messages” in data column, and the PK columns are party of search criteria.   Thanks Dinesh Pandey From: Ramakrishnan Muralidharan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 4:44 PM To: [EMAIL PROTECTED]; pgsql-general@postgresql.org;

Re: [SQL] [GENERAL] index row size 2728 exceeds btree maximum, 27

2005-06-02 Thread KÖPFERL Robert
To me it seems that the definer of this table missed the concept index ... or the concept database One usually looks up data using a key, but if the whole row is the key, what data shall be looked up. So short story long: Remove data from your index. The data column seems like the data to be look

Re: [GENERAL] One Sequence for all tables or one Sequence for each

2005-06-02 Thread Janning Vygen
Am Donnerstag, 2. Juni 2005 12:03 schrieb Martijn van Oosterhout: > On Thu, Jun 02, 2005 at 12:58:33PM +0300, Kaloyan Iliev Iliev wrote: > > Hi, > > > > I suppose the paralel work will be a problem if you are using one > > sequence for all tables. > > I don't know about this. Sequences are designe

Re: [GENERAL] Automate Postgres Backup In windows

2005-06-02 Thread Richard Huxton
Shaun Clements wrote: Apologies if this post is a repeat. I am trying to automate a postgres database data and schema dump through windows. Does anyone have any suggestions on best way to do so. Thanks Call pg_dump via a batch-file and run it from the Windows scheduler? Or am I missing some

Re: [GENERAL] interval integer comparison

2005-06-02 Thread Havasvölgyi Ottó
Hi, - Original Message - From: "Bruno Wolff III" <[EMAIL PROTECTED]> To: "Havasvölgyi Ottó" <[EMAIL PROTECTED]> Cc: Sent: Thursday, June 02, 2005 3:53 AM Subject: Re: [GENERAL] interval integer comparison > On Thu, Jun 02, 2005 at 01:54:12 +0200, > Havasvölgyi Ottó <[EMAIL PROTECTED]

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Ramakrishnan Muralidharan
Hi   It is not advisable to add a variable length data field in the Index key, since it is very difficult predict the size of the field which may vary from record to record.    are you included this field for Full text search on data field?   Regards, R.

[GENERAL] Automate Postgres Backup In windows

2005-06-02 Thread Shaun Clements
Apologies if this post is a repeat.   I am trying to automate a postgres database data and schema dump through windows. Does anyone have any suggestions on best way to do so. Thanks   Kind Regards,Shaun Clements

Re: [GENERAL] Stats not getting updated....

2005-06-02 Thread Richard Huxton
Himanshu Baweja wrote: i also noted one more thing... the stats are getting updated only when i do vacuum is that wht is supposed to happen... or something is wrong Hmm - there's something strange going on certainly. Try a couple of simple queries on a table and see whether the stats g

Re: [GENERAL] Stats not getting updated....

2005-06-02 Thread Himanshu Baweja
i also noted one more thing... the stats are getting updated only when i do vacuum is that wht is supposed to happen... or something is wrong   thx HimanshuHimanshu Baweja <[EMAIL PROTECTED]> wrote: i am trying to identify which tables should be moved to diff drives i first identified

Re: [SQL] [GENERAL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Richard Huxton
Dinesh Pandey wrote: I am inserting some log messages in the column "data". (Basically I am inserting records from reading an xml file) In the PRIMARY KEY, btree (scan_id, host_ip, port_num, plugin_id, severity, data) data is of type TEXT and can contain long string values. I'm still not convi

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Martijn van Oosterhout
On Thu, Jan 01, 2004 at 03:13:48PM +0530, Dinesh Pandey wrote: > One of the columns in primary key is of type "TEXT". I am able to insert > with small data, but for around 3000 characters it's failing. How to handle > that? Easy, btree indexes can't handle data with more that 2713 bytes. You need

Re: [GENERAL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Dinesh Pandey
I am inserting some log messages in the column "data". (Basically I am inserting records from reading an xml file) In the PRIMARY KEY, btree (scan_id, host_ip, port_num, plugin_id, severity, data) data is of type TEXT and can contain long string values. The question is how to remove this error "i

Re: [GENERAL] One Sequence for all tables or one Sequence for each

2005-06-02 Thread Martijn van Oosterhout
On Thu, Jun 02, 2005 at 12:58:33PM +0300, Kaloyan Iliev Iliev wrote: > Hi, > > I suppose the paralel work will be a problem if you are using one > sequence for all tables. If you insert a large amount of rows in > different tables there will be great slowdown because your sequence is > the bott

Re: [GENERAL] writing a file using procedure

2005-06-02 Thread Tino Wildenhain
Am Donnerstag, den 02.06.2005, 15:06 +0530 schrieb Nageshwar Rao: > Can we write/read a file in postgresql procedure ? Yes. -- Tino Wildenhain <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 6: Have you searched our list archives?

Re: [GENERAL] writing a file using procedure

2005-06-02 Thread Richard Huxton
Nageshwar Rao wrote: Can we write/read a file in postgresql procedure ? Using one of the "untrusted" languages, yes. They can only be used by an administrator but have access to the full capabilities of the underlying procedural language. Of course, you will read and write files as the user

Re: [GENERAL] writing a file using procedure

2005-06-02 Thread Peter Eisentraut
Am Donnerstag, 2. Juni 2005 11:36 schrieb Nageshwar Rao: > Can we write/read a file in postgresql procedure ? That depends on the language you use. PL/PerlU and PL/sh can do it, for example, whereas plain PL/Perl or PL/pgSQL cannot. -- Peter Eisentraut http://developer.postgresql.org/~petere/

Re: [GENERAL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Richard Huxton
Dinesh Pandey wrote: ---+---+--- Column| Type ---+---+--- scan_id| bigint host_ip| character varying(15) port_num | integer plugin_id | integer

Re: [GENERAL] writting a large store procedure

2005-06-02 Thread Sean Davis
I have to recommend pgEdit (nearly free and does have a nearly fully-functional test version). Sean On Jun 2, 2005, at 3:57 AM, Rodríguez Rodríguez, Pere wrote: Hello, I'm writing a large store procedures (more than 700 lines) and I have much problems to debug it. How can I debug it easily?

Re: [GENERAL] One Sequence for all tables or one Sequence for each

2005-06-02 Thread Kaloyan Iliev Iliev
Hi, I suppose the paralel work will be a problem if you are using one sequence for all tables. If you insert a large amount of rows in different tables there will be great slowdown because your sequence is the bottle neck of your database. All the inserts must read from it one by one. If you

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Dinesh Pandey
Hi,   One of the columns in primary key is of type “TEXT”. I am able to insert with small data, but for around 3000 characters it’s failing. How to handle that?   Thanks Dinesh Pandey From: Ramakrishnan Muralidharan [mailto:[EMAIL PROTECTED] Sent: Thursday, June 02, 2005 3:11

[GENERAL] writing a file using procedure

2005-06-02 Thread Nageshwar Rao
Can we write/read a file in postgresql procedure ?

Re: [GENERAL] [SQL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Ramakrishnan Muralidharan
Hi,   The issue looks like your Index width exceeds the maximum width  of the index key limit, Please review the keys used in the index.   Regards, R.Muralidharan     -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Din

[GENERAL] Stats not getting updated....

2005-06-02 Thread Himanshu Baweja
i am trying to identify which tables should be moved to diff drives i first identified the most used tables... by looking at the data in pg_statio_user_tables. and then i did sampling of the io-usage of these tables every 2 mins... to identify which are getting used when   but the probl

[GENERAL] One Sequence for all tables or one Sequence for each table?

2005-06-02 Thread Janning Vygen
Hi, if you define a SERIAL column postgresql's default is to generate a sequence for each SERIAL column (table_column_seq). But you can use one sequence for the whole database like this: CREATE dbsequence; CREATE TABLE one ( id int4 NOT NULL DEFAULT nextval('dbseq') ); CREATE TABLE two ( id

Re: [GENERAL] writting a large store procedure

2005-06-02 Thread ouyang_jw
Title: writting a large store procedure I use EMS postgresql manager 2.8.0.3   - Original Message - From: Rodríguez Rodríguez, Pere To: pgsql-general@postgresql.org Sent: Thursday, June 02, 2005 3:57 PM Subject: [GENERAL] writting a large store procedure

[GENERAL] writting a large store procedure

2005-06-02 Thread Rodríguez Rodríguez, Pere
Title: writting a large store procedure Hello, I'm writing a large store procedures (more than 700 lines) and I have much problems to debug it. How can I debug it easily? I use pgAdmin, is there another editor (free software) that permit write large store procedure more easily? Thanks in

[GENERAL] index row size 2728 exceeds btree maximum, 2713

2005-06-02 Thread Dinesh Pandey
TABLE ---+---+---   Column    | Type   ---+---+---  scan_id    | bigint     host_ip    | character varying(15)  port_num | integer    plugin_id  | integer