[GENERAL] Making changes visible to other connections

2000-10-09 Thread andrew
Hi, If I run an UPDATE operation from one connection the changed data is only visible from that connection. How do make the change visible from other connections? Do I have to wrap everything in a transaction? I'm using libpq if that makes a difference. Thanks, Andrew

Re: [GENERAL] Using BLOBs with PostgreSQL

2000-10-09 Thread Denis Perchine
> PG definitively lack BLOB support and it is a big drawback... This statement is completly wrong. Just look at lo_create/lo_open/lo_read/lo_write/lo_close functions in libpq. > Even with PG7.1 with TOAST that will remove the 8kB limit on records, there > will be still no BLOB support. > > As yo

Re: [GENERAL] My new job

2000-10-09 Thread Alfred Perlstein
* Bruce Momjian <[EMAIL PROTECTED]> [001009 22:11] wrote: > As many of you know, several businesses are involved in providing > PostgreSQL support. > > After careful consideration, I have decided to accept a job with Great > Bridge. There will be a press announcement tomorrow (Tuesday) with more

[HACKERS] My new job

2000-10-09 Thread Bruce Momjian
As many of you know, several businesses are involved in providing PostgreSQL support. After careful consideration, I have decided to accept a job with Great Bridge. There will be a press announcement tomorrow (Tuesday) with more details. I will post a URL here when I have it. Interestingly, I

Re: [GENERAL] Regression tests of plain 7.0.2 fails

2000-10-09 Thread Tom Lane
[EMAIL PROTECTED] (Martin Jacobs) writes: > Ignoring the minor floatingpoint errors, the first annoying > severe was in parallel group2 > sequential test create_type ... FAILED > ERROR: TypeCreate: function 'widget_in(opaque)' does not exist Odd. Test create_function_1 di

Re: [GENERAL] PL/pgSQL syntax help?

2000-10-09 Thread Tom Lane
Jinsoo Hwang <[EMAIL PROTECTED]> writes: > ERROR plpgsql: cache lookup for proc 163937 failed. I suspect that you deleted and recreated the function after creating the trigger. Currently you must recreate the trigger after you recreate the function --- but the system won't tell you so in any di

Re: [GENERAL] Re: JDBC Performance

2000-10-09 Thread Gunnar R|nning
"Keith L. Musser" <[EMAIL PROTECTED]> writes: > I did try out Peter's new JDBC driver on two very simple query-only > applications. It was about 15% slower on one of the apps and 10% faster > on the other, compared with jdbc7.0-1.2.jar. It worked correctly on > both tests. > > Neither is parti

Re: [GENERAL] PostgreSQL encoding question

2000-10-09 Thread Gunnar R|nning
"Anton Kalauzky" <[EMAIL PROTECTED]> writes: > Dear friends, > > I have two PC's with exactly the same configurations - one in my office and > the other at home. They are running RedHat Linux 6.2 and PostgreSQL included > in distribution. The first one I recently installed by upgrading from Li

Re: [GENERAL] Re: JDBC Performance

2000-10-09 Thread Keith L. Musser
I did try out Gunnar's new JDBC driver on two very simple query-only applications. It was about 15% slower on one of the apps and 10% faster on the other, compared with jdbc7.0-1.2.jar. It worked correctly on both tests. Neither is particularly representative, but the fact that one's faster an

Re: [GENERAL] Postgres 7.1 and the 8k tuple / row limit

2000-10-09 Thread Tom Lane
"Ally" <[EMAIL PROTECTED]> writes: > However, I've read that Postgres 7.1 / 7.2 will accomodate larger row sizes > and was wondering if there was a ballpark ETA / release date for them. And > does anybody know which version will have this feature? 7.1 for sure; the feature has been working in dev

Re: [GENERAL] Question !

2000-10-09 Thread Philip Warner
At 19:55 6/10/00 +0300, Ruslan P. Yawdoshak wrote: >Hove i can restrict access for tables in postgeSQL >and users can anly call function to change tables entries ? >(In function I'll self control access) No. There was talk about implementing this, but so far it has gone nowhere, I think...

Re: [GENERAL] PostgreSQL 7.0

2000-10-09 Thread Tom Lane
"Jack" <[EMAIL PROTECTED]> writes: > I have been upgrading Postgresql version from 6.5 into 7.0 and slight > problems emerged, probably due to my insufficient knowledge: > 1. In the older version, in psql, I could repeat SQL commands by means of > up-down keys - now I have to type everything again

Re: [GENERAL] Re: JDBC Performance

2000-10-09 Thread Keith L. Musser
I did try out Peter's new JDBC driver on two very simple query-only applications. It was about 15% slower on one of the apps and 10% faster on the other, compared with jdbc7.0-1.2.jar. It worked correctly on both tests. Neither is particularly representative, but the fact that one's faster an o

Re: [GENERAL] Help needed : temp tables.

2000-10-09 Thread Tom Lane
"Vilson farias" <[EMAIL PROTECTED]> writes: > I'm having problems with temporary tables in postgre. > I've been using Postgre 7.02 in a red hat 6.2 and I'm accessing using Delphi > 5 + Winzeos Postgre Components. I've been using for some mounths and now I > checked that there are lots of temp tabl

Re: [GENERAL] Re: VIEW problem

2000-10-09 Thread bmccoy
On Fri, 6 Oct 2000, Stephan Szabo wrote: > About view rules: > Of course, you shouldn't actually be > able to get into the situation with > a view rule, since dropping the table > the view points to should drop the view > (or refuse to drop the table) it appears > from looking at drop table in t

Re: [GENERAL] Postgres 7.1 and the 8k tuple / row limit

2000-10-09 Thread Neil Conway
On Sun, Oct 08, 2000 at 01:17:45PM +1000, Ally wrote: > I've developed a full-text, news article database in Postgres with Perl and > the Pg module as my search front end. The only problem (that I discovered > AFTER I'd done all my dev work) is that Postgres has an 8K row limit. About > 3% of my a

Re: [GENERAL] distinct

2000-10-09 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > There really isn't a spec way to do it, however, > select distinct on (col1) col1, col2, col3, col4 from tablename; > would get you one row for each distinct col1, but it's undefined what > row that gets you. You can get a well-defined result with DIS

[GENERAL] Question !

2000-10-09 Thread Ruslan P. Yawdoshak
Hove i can restrict access for tables in postgeSQL and users can anly call function to change tables entries ? (In function I'll self control access) Thanx and Regards, Ruslan.

[ADMIN] PostgreSQL encoding question

2000-10-09 Thread Anton Kalauzky
Dear friends, I have two PC's with exactly the same configurations - one in my office and the other at home. They are running RedHat Linux 6.2 and PostgreSQL included in distribution. The first one I recently installed by upgrading from Linux 6.1 and the for the second one I went through full

[GENERAL] Postgres 7.1 and the 8k tuple / row limit

2000-10-09 Thread Ally
Hey all, I've developed a full-text, news article database in Postgres with Perl and the Pg module as my search front end. The only problem (that I discovered AFTER I'd done all my dev work) is that Postgres has an 8K row limit. About 3% of my articles exceed this size limit. I've tried splittin

[GENERAL] PostgreSQL 7.0

2000-10-09 Thread Jack
Hallo, I have been upgrading Postgresql version from 6.5 into 7.0 and slight problems emerged, probably due to my insufficient knowledge: 1. In the older version, in psql, I could repeat SQL commands by means of up-down keys - now I have to type everything again; 2. ODBC driver I have used to coop

[GENERAL] Re: Checking number of entries

2000-10-09 Thread Stephan Szabo
>IIRC,SQL92 recommends to handle this case >as ASSERTIONS rather than as CONSTRAINTS. Yeah, that was my first thought was to build them and try to make the constraint look like an assertion. That doesn't get around locking though. >The implementation would be quite different from >that of (curr

Re: [GENERAL] Trying to use PGSql with PHP

2000-10-09 Thread Frank Joerdens
How did you install PHP & Apache? Did you configure & compile the sources or get the rpm's from somewhere? If you're compiling PHP from the sources, you need to configure PHP with the --with-pgsql switch. You can check whether this is the problem (i.e. missing pgsql support) by making a page that

[GENERAL] conference registration system

2000-10-09 Thread Verbus M. Counts
Greetings, We are developing a conference registration system using PostgreSQL. Any one willing to share any prior work done in this area? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share

[GENERAL] Making changes visible to other connections

2000-10-09 Thread andrew
Hi, If I run an UPDATE operation from one connection the changed data is only visible form that connection. How do make the change visible from other connections? Do I have to wrap everything in a transaction? I'm using libpq if that makes a difference. Thanks, Andrew

[GENERAL] Question

2000-10-09 Thread Ruslan P. Yawdoshak
Hello ! I have tables and want to restrict access for tables for all users and write function that is users can call and\ change data in this tables. (All persmition will be controled in function) How is it do ? Regards, Ruslan.

RE: [GENERAL] Using BLOBs with PostgreSQL

2000-10-09 Thread Franck Martin
PG definitively lack BLOB support and it is a big drawback... Even with PG7.1 with TOAST that will remove the 8kB limit on records, there will be still no BLOB support. As you have indicated it seems that PG chokes on null characters. What is needed is a varbinary type, which stores binary data

[GENERAL] MD5 hash function for PostgreSQL

2000-10-09 Thread stephane
Hi, Just wanted to let you know I posted a MD5 hash function for PostgreSQL, based on a request I got for this kind of feature. The code is based on the soundex module (as found in 7.0.2), with the original RSA MD5 code found in the MD5 Perl module. (Please note the MD5 hash is not necessarily c

[GENERAL] Re: VIEW problem

2000-10-09 Thread Stephan Szabo
(My normal mail account is dead so I'm reading from the archives on the web :( - And I'm not sure that my last mail on the subject got through) About view rules: Of course, you shouldn't actually be able to get into the situation with a view rule, since dropping the table the view points to sh

[GENERAL] adding data in one column

2000-10-09 Thread Vitaliy V. Romanets
You can use a 'oid'::oid Vitaliy..

[GENERAL] Help needed : temp tables.

2000-10-09 Thread Vilson farias
I'm having problems with temporary tables in postgre. I've been using Postgre 7.02 in a red hat 6.2 and I'm accessing using Delphi 5 + Winzeos Postgre Components. I've been using for some mounths and now I checked that there are lots of temp tables in my system. These tables where created by my a

Re: [GENERAL] Question

2000-10-09 Thread bmccoy
On Thu, 5 Oct 2000, Amy Antle wrote: > I have 2 tables in Access. I want one of them to act as an archive table. > The first table collects records for a tempoary amount of time, and then > drops them into another table that will store them and keep growing and > growing each time it receive

[GENERAL] NULL value in one argument will clear all arguments in server-side functions ( plpgsql ) to NULL?!

2000-10-09 Thread Serg King
Hi All, I'm using Postgres for the first time and have this problem: when I use NULL as the value of one of the parameters in my stored procedure, all the values of all the parameters in body of procedure will cleared to NULL too. (I have Postgres 7.0.2 on Linux RedHat 6.2 ) The simple example:

Re: [GENERAL] persistent db connections/resiliency

2000-10-09 Thread Tom Lane
Robert Boyd <[EMAIL PROTECTED]> writes: > Should I get connection status before every query, and if bad, attempt > reconnect? Waste of time, assuming you are thinking of PQstatus(); it just returns a field from the PGconn struct showing the last known state. I'd suggest that *upon error* you che

[GENERAL] Change/convert encoding?

2000-10-09 Thread Erno Kuusela
hello, i have a database and in it strings with accented characters in latin-1 encoding, but the database has been mistakenly created with unicode encoding. as you all know this makes pg_dump break. what i'm enquiring is - is there a way to change the encoding and preserve the data? i only kno

Re: [GENERAL] pg_hba.conf

2000-10-09 Thread Tom Lane
"Tamsin" <[EMAIL PROTECTED]> writes: > I'm trying to sort out security on my db, configuring pg_hba.conf etc. I > just wanted to check that this in't possible - I want my postgres linux user > to be able to connect to the database without a password, but I don't want > other users logged on to th

[GENERAL] object features in Oracle 8/9

2000-10-09 Thread Ned Lilly
All, Came across a Gartner/Tech Republic research piece on object support in Oracle 8: http://www.techrepublic.com/download_item.jhtml?id=dr00220001002jim01.htm You need to register for the site, but it's free. I'd be happy to email the PDF to anyone individually as well. Anyone know what's n

[GENERAL] persistent db connections/resiliency

2000-10-09 Thread Robert Boyd
I'm tasked with handling database connection failures elegantly--reconnecting after failure. I'm wondering how other people have approached this problem. Should I get connection status before every query, and if bad, attempt reconnect? Any help is appreciated. - Rob

Re: [GENERAL] Lock problem on Solaris

2000-10-09 Thread Travis Bauer
Tom, Thanks. Running ipcclean fixed it right away. Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer On Mon, 9 Oct 2000, Tom Lane wrote: > Travis Ba

Re: [GENERAL] Lock problem on Solaris

2000-10-09 Thread Tom Lane
Travis Bauer <[EMAIL PROTECTED]> writes: > When I start postmaster, I get the following: > IpcSemaphoreCreate: semget failed (No space left on device) key = ... > However, it normall works fine with the setting, and a nasty > crash killed it this morning. I think that for some reason, some > se

Re: [GENERAL] snapshot: dot or dash?

2000-10-09 Thread The Hermit Hacker
looking at it now, it appears that the build tree had something stuck in it that it was trying to use byacc vs bison, which was screwing up the build ... doing it manual right now, after cleaning out some cache files, and all looks good so far ... On Sun, 8 Oct 2000, Frank Joerdens wrote: > e

[GENERAL] Lock problem on Solaris

2000-10-09 Thread Travis Bauer
When I start postmaster, I get the following: IpcSemaphoreCreate: semget failed (No space left on device) key = ... I know that this is caused by not having enough semaphores and can be fixed by increasing some settings. However, it normall works fine with the setting, and a nasty crash kill

Re: [GENERAL] Table locks

2000-10-09 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > No spinlock. I was going to just grab a snapshot as it existed. If it > > changes while I am grabbing it, I just try again. > > Unless, of course, you follow a now-dangling pointer and cause a backend > crash. But even without that, how do you kn

Re: [GENERAL] Win98

2000-10-09 Thread Martin A. Marques
On Mon, 9 Oct 2000, Bruce Momjian wrote: > > On Mon, 09 Oct 2000, Peter Eisentraut wrote: > > > John Menke writes: > > > > Can you install postgresql on Win98? > > > > > > Clients only. > > > > And on Windows NT? > > Cygwin can run the full server on NT. Where can I get the binarys? "And I'm

Re: [GENERAL] Win98

2000-10-09 Thread Bruce Momjian
> On Mon, 09 Oct 2000, Peter Eisentraut wrote: > > John Menke writes: > > > Can you install postgresql on Win98? > > > > Clients only. > > And on Windows NT? Cygwin can run the full server on NT. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED]

Re: [GENERAL] Table locks

2000-10-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > No spinlock. I was going to just grab a snapshot as it existed. If it > changes while I am grabbing it, I just try again. Unless, of course, you follow a now-dangling pointer and cause a backend crash. But even without that, how do you know whether y

Re: [GENERAL] Table locks

2000-10-09 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > I am thinking of a tcl/tk app that can go in and grab information from > > backends by querying the actual structure values. Does gdb > > automatically halt the running app? > > Yes. I suppose this is no big problem if you start a backend to be >

Re: [GENERAL] Table locks

2000-10-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I am thinking of a tcl/tk app that can go in and grab information from > backends by querying the actual structure values. Does gdb > automatically halt the running app? Yes. I suppose this is no big problem if you start a backend to be used only as t

Re: [GENERAL] How does TOAST compare to other databases' mechanisms?

2000-10-09 Thread Bruce Momjian
> Philip Warner <[EMAIL PROTECTED]> writes: > > In the case of images, is there a way to tell TOAST not to bother even > > trying to compress the data? (eg. JPEG files). If so, would I be right in > > assuming that this would be better for fast retrieval (even for text > > files)? > > TOAST will

Re: [GENERAL] How does TOAST compare to other databases' mechanisms?

2000-10-09 Thread Bruce Momjian
[ Charset ISO-8859-1 unsupported, converting... ] > Is all the info on using toast on the postgresql site, or is it somewhere > else? > > Also, I'm assuming it is good for more than just test, correct? We are keeping TOAST quiet until beta beings. Of course, this has already made it to the gen

Re: [GENERAL] How does TOAST compare to other databases' mechanisms?

2000-10-09 Thread Bruce Momjian
> Tom Lane wrote: > > Frank Joerdens <[EMAIL PROTECTED]> writes: > > > Can I go around bragging to my SQL-minded friends about using this > > > really cool thing that no other database has, or should I keep my mouth > > > shut because it's actually not so cool? > > > > IMHO it's pretty cool. You

Re: [GENERAL] Table locks

2000-10-09 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > I want to write an admin utility that will view backend SQL queries, and > > be able to view locks and statistics using gdb on the running backend. > > gdb on a backend doesn't seem to me like a reasonable component of a > production situation. I w

Re: [GENERAL] Table locks

2000-10-09 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > I want to write an admin utility that will view backend SQL queries, and > > be able to view locks and statistics using gdb on the running backend. > > gdb on a backend doesn't seem to me like a reasonable component of a > production situation. I w

Re: [GENERAL] Table locks

2000-10-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I want to write an admin utility that will view backend SQL queries, and > be able to view locks and statistics using gdb on the running backend. gdb on a backend doesn't seem to me like a reasonable component of a production situation. I was thinking

Re: [GENERAL] Access to PGSQL

2000-10-09 Thread Bruce Momjian
Yes, you can use symlinks to move table files to other locaions while the database is down. [ Charset ISO-8859-1 unsupported, converting... ] > If I replace the actual tables with links to a postgres database, the module > and macros should work the same also, correct? As long as the whole > str

Re: [GENERAL] postgres via shell scripts

2000-10-09 Thread Bruce Momjian
> On Fri, Oct 06, 2000 at 06:05:41PM +0200, Peter Eisentraut wrote: > > Mike Sears writes: > > > Is there away to access a postgres database using a shell script, like bash > > > or korn? > > > > There's pgbash, which might be what you want, but I've never tried it. > > Of course psql works as

Re: [GENERAL] Table locks

2000-10-09 Thread Bruce Momjian
I want to write an admin utility that will view backend SQL queries, and be able to view locks and statistics using gdb on the running backend. > "Dale Anderson" <[EMAIL PROTECTED]> writes: > > Is there any way to view the locks being held on a table?? > > There is not any good way --- lock.

Re: [GENERAL] Fw: Referencial integrity when there are timestampprimary keys

2000-10-09 Thread Stephan Szabo
I see this as well on my CVS machine. I'll look to see why it's doing that this week and 7.1 should hopefully have this fixed. It's especially wierd since making the constraint and then putting the same data in seems to work. Stephan Szabo [EMAIL PROTECTED] On Mon, 9 Oct 2000, Vilson farias wr