[GENERAL] Slow droping tables

2001-06-06 Thread Somazx Interesting
It would seem that my postgresql database system is getting slower and slower at dropping tables and possibly other tasks too. Am I being paranoid? I don't think so. Can anyone think of anything that would cause dropping a table with little data contained within it to take several seconds (an

Re: [GENERAL] template1, can there be a template2/3/4?

2001-06-06 Thread will trillich
On Mon, Jun 04, 2001 at 11:16:40AM -0400, Jim Mercer wrote: > would it be possible for me to create a template2 and have some arbitrary > database use it instead of template1? > > the reason i ask this is that it would be useful to have something to the > effect of: > > database access startup f

Re: [GENERAL] Re: Updating views

2001-06-06 Thread will trillich
On Tue, Jun 05, 2001 at 01:17:00AM +0200, Rasmus Resen Amossen wrote: > > Problem is not 'where'. Views in Postgresql doesn't allows you insert, > > update or delete unless you define especila rules that explain Postgresql > > what to do in each case. > > Look Postgresql programming manual. Yo

[GENERAL] Skipping duplicate records?

2001-06-06 Thread Steve Micallef
Hi, I've recently migrated from MySQL to PostgreSQL and as impressed as I am with Postgres, I have found one seemingly missing feature to be a little bothersome.. 'mysqlimport' has the ability to skip duplicate records when doing bulk imports from non-binary files. PostgreSQL doesn't seem to hav

Re: [GENERAL] using create constraint trigger

2001-06-06 Thread Stephan Szabo
On Wed, 6 Jun 2001, Bruno Wolff III wrote: > I am interested in having a constraint checked at the end of a transaction > that is close to a references constraint but not exactly the same. > Simplfied versions of the table create statements look like the following: > create table table1 ( > col

Re: [GENERAL] "trigger"ing a procedure every X minutes

2001-06-06 Thread Len Morgan
>> It's certainly not a big deal to use the cron, I just thought maybe someone >> had experimented with an internal mechanism. I'd like to try it someday, >> when I know a lot more about Pg. My current project has an ever-growing >> number of cron jobs (up to 6 now) and was just thinking about v

[GENERAL] using create constraint trigger

2001-06-06 Thread Bruno Wolff III
I am interested in having a constraint checked at the end of a transaction that is close to a references constraint but not exactly the same. Simplfied versions of the table create statements look like the following: create table table1 ( col1 int primary key, col2 int ); create table table2 (

[GENERAL] Yet another Postgresql article...

2001-06-06 Thread Brent R. Matzelle
This article mentions Postgres multiple times. It even mentions GreatBridge: http://dailynews.yahoo.com/h/zd/20010606/tc/linux_forklifts_in_the_data_warehouse_1.html Brent __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail

Re: [GENERAL] "trigger"ing a procedure every X minutes

2001-06-06 Thread Herbert.Liechti
On Wed, 6 Jun 2001, Fran Fabrizio wrote: > > Some thoughts are: > > 1. It would be portable with the database. I don't have to go setting up > crons on the new machine if I move the db. > 2. The cron usually involves writing a shell/perl/whatever script to call > the psql client and pass in SQ

Re: [GENERAL] PostgreSQL Replication Server?

2001-06-06 Thread Alvaro Herrera
On Wed, 6 Jun 2001, Alvaro Herrera wrote: > On Fri, 1 Jun 2001, Gerald Gutierrez wrote: > > Now, erserver seems to work, but it needs a bit hacking around that I > hadn't done yet. Maybe when I get it working I'll see to writing > something. In the mean time, source code is the only thing that ca

Re: [GENERAL] PostgreSQL Replication Server?

2001-06-06 Thread Alvaro Herrera
On Fri, 1 Jun 2001, Gerald Gutierrez wrote: > The database article at Zend mentioned a replication server for > PostgreSQL., available at www.pgsql.com. The press release says the code > itself has been put into the CVS tree, but I can't find any documentation > on it anywhere. You won't find an

Re: [GENERAL] "trigger"ing a procedure every X minutes

2001-06-06 Thread Fran Fabrizio
Some thoughts are: 1. It would be portable with the database. I don't have to go setting up crons on the new machine if I move the db. 2. The cron usually involves writing a shell/perl/whatever script to call the psql client and pass in SQL queries via STDIN or file redirect just to invoke th

Re: [GENERAL] Text data type doesn't accept newlines?

2001-06-06 Thread Gordan Bobic
Are you using the "quote" function? You have to use it if you are to guarantee that the data will be acceptable as "input". $myVar = $myDB -> quote ($myVar) > I'm using the Pg perl interface. But, think my problem was that I had > unescaped single quotes in the string. Added the following to my

Re: [GENERAL] Database Size

2001-06-06 Thread Feite Brekeveld
jackie wrote: Hello EveryBody How could I get the size(MB) of the Database du  on the datadirectory where the database are located. Feite