Re: [SQL] Cluster and primary key

2001-06-12 Thread Mathijs Brands
On Tue, Jun 05, 2001 at 07:51:11AM +, Mikael Kjellström allegedly wrote: > I can't find a way to cluster a table on another index and keep it's > primary key. > > When I define the table the primary key is created, but it's dropped when I > cluster the table on another index. > > I've trie

Re: [SQL] Re: How to store gif or jpeg? Thanks!

2001-05-11 Thread Mathijs Brands
On Tue, May 08, 2001 at 03:16:53PM +0200, Sylte allegedly wrote: > > src/interfaces/jdbc/example/ImageViewer.java > > Somewhere on the internet Please be more specific It's part of the PostgreSQL source. You can download the PostgreSQL source from www.postgresql.org... Regards, Mathijs

Re: [SQL] maybe Offtopic : PostgreSQL & PHP ?

2001-04-18 Thread Mathijs Brands
On Wed, Apr 18, 2001 at 08:54:24AM -0600, Roberto Mello allegedly wrote: > Ah, I see the problem. When you mentioned there were problems I > thought you were talking about the connections themselves. > I am using PHP 4 under AOLserver/OpenNSD, which has been fully > threaded from scra

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-29 Thread Mathijs Brands
On Thu, Mar 29, 2001 at 10:10:44AM +0100, Peter Mount allegedly wrote: > At 21:37 26/03/01 +0200, Mathijs Brands wrote: > >On Mon, Mar 26, 2001 at 07:00:43PM +0200, Peter Eisentraut allegedly wrote: > > > Mathijs Brands writes: > > > > > > > Has anybody ev

Re: Calling Java from psql (was Re: [SQL] requesting help)

2001-03-26 Thread Mathijs Brands
On Mon, Mar 26, 2001 at 07:00:43PM +0200, Peter Eisentraut allegedly wrote: > Mathijs Brands writes: > > > Has anybody ever tried calling Java code from a pgsql trigger written > > in C? Shouldn't this be possible using JNI? > > I have, and given the current Java im

Calling Java from psql (was Re: [SQL] requesting help)

2001-03-26 Thread Mathijs Brands
On Mon, Mar 26, 2001 at 09:53:52AM +0200, Poul L. Christiansen allegedly wrote: > Log into PostgreSQL using psql and run the help command: > "\h create trigger". > > See also: > http://www.postgresql.org/users-lounge/docs/6.5/postgres/sql-createtrigger.htm > > HTH, > Poul L. Christiansen > > On

Re: [SQL] all views in database broken at once

2001-03-25 Thread Mathijs Brands
On Sat, Mar 24, 2001 at 11:36:56PM -0500, Tom Lane allegedly wrote: > Mathijs Brands <[EMAIL PROTECTED]> writes: > > How about being able to recompile them (keeping the SQL around in the > > system catalogs)? Doesn't Oracle allow you to do something like that? >

Re: [SQL] all views in database broken at once

2001-03-24 Thread Mathijs Brands
On Sat, Mar 24, 2001 at 07:50:00PM -0500, Tom Lane allegedly wrote: > Andrew Perrin <[EMAIL PROTECTED]> writes: > > But I'm intrigued: what is it that causes this? Is it *my* > > recreating the view on which the other views depend, > > Yes. You dropped and recreated the view --- the new version

Re: [SQL] Serials.

2001-03-24 Thread Mathijs Brands
On Sat, Mar 24, 2001 at 03:55:09PM +1000, Grant allegedly wrote: > Please see below for my table schema. I have two questions. > > (1) Why is a sequence limited to 2147483647, it seems very small? This is the maximum value a signed integer (32-bit) can contain. If this really is a problem for yo

Re: [SQL] Undefined symbol

2001-03-06 Thread Mathijs Brands
On Tue, Mar 06, 2001 at 06:44:31PM -0500, Boulat Khakimov allegedly wrote: > testdb=# select encode('bob','bob'); > ERROR: Load of file /home/boulat/Funio.com/database/encode.so failed: > /home/boulat/Funio.com/database/encode.so: undefined symbol: > BF_cfb64_encrypt > > thats the function that

Re: [SQL] Re: [GENERAL] Re: MySQLs Describe emulator!

2001-03-06 Thread Mathijs Brands
On Tue, Mar 06, 2001 at 04:37:32PM +0100, Karel Zak allegedly wrote: > On Tue, Mar 06, 2001 at 10:19:13AM -0500, Boulat Khakimov wrote: > > > > Karel Zak wrote: > > > > On Tue, Mar 06, 2001 at 09:14:54AM -0500, Boulat Khakimov wrote: > > > > Tom Lane wrote: > > > > > > > > > > Boulat Khakimov <[E

Re: [SQL] Re: [HACKERS] why the DB file size does not reduce when 'delete'the data in DB?

2001-03-06 Thread Mathijs Brands
On Sun, Mar 04, 2001 at 10:01:37AM +0800, xuyifeng allegedly wrote: > - Original Message - > From: The Hermit Hacker <[EMAIL PROTECTED]> > To: Jaruwan Laongmal <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, March 02, 2001 8:04 PM > Subject: Re: [HACKERS

Re: [SQL] Optimizing Query

2001-03-05 Thread Mathijs Brands
On Mon, Mar 05, 2001 at 04:59:47PM -0500, Justin Long allegedly wrote: > Ok, now I have another question... it doesn't seem to be accessing the index. > > explain select k.kbid,k.title from knowledge k , kbwords w0 , kbwords w1 > WHERE ((k.kbid=w0.kbid and w0.wordid=42743) AND (k.kbid=w1.kbid an

Re: [SQL] Two way encryption in PG???

2001-03-05 Thread Mathijs Brands
On Mon, Mar 05, 2001 at 08:40:53AM -0800, clayton cottingham allegedly wrote: > Boulat Khakimov wrote: > > > > David Olbersen wrote: > > > > > > On Sun, 4 Mar 2001, Boulat Khakimov wrote: > > > > > > ->How do I encrypt/decrypt something in PG? > > > > > > Perhaps it'd be better to one-way encrypt

Clustering (was Re: [SQL] Optimizing Query)

2001-03-05 Thread Mathijs Brands
On Mon, Mar 05, 2001 at 04:45:47PM -0500, Bruce Momjian allegedly wrote: > Yes. > > > On Mon, Mar 05, 2001 at 04:07:57PM -0500, Bruce Momjian allegedly wrote: > > > Have you tried VACUUM ANALYZE and CLUSTER? > > > > I assume CLUSTER still drops all indexes except the one you're clustering > > on

Re: [SQL] How do I use text script containing SQL?

2001-03-05 Thread Mathijs Brands
On Mon, Mar 05, 2001 at 11:08:40AM -0800, David Olbersen allegedly wrote: > On Mon, 5 Mar 2001, Jeff S. wrote: > > ->I want to be able to use the file to create my table. > ->I've tried psql -d databasename -e < filename.txt > ->but that doesn't work. > > You're making it too dificult :-) > 'psq

Re: [SQL] Optimizing Query

2001-03-05 Thread Mathijs Brands
On Mon, Mar 05, 2001 at 04:07:57PM -0500, Bruce Momjian allegedly wrote: > Have you tried VACUUM ANALYZE and CLUSTER? I assume CLUSTER still drops all indexes except the one you're clustering on? Mathijs -- It's not that perl programmers are idiots, it's that the language rewards idiotic behavi

Re: [SQL] Speed of SQL statements

2001-02-23 Thread Mathijs Brands
On Sun, Feb 18, 2001 at 03:42:43PM -0500, Kevin Quinlan allegedly wrote: > Does anyone have any performance numbers regarding SQL statements, > specifically SELECT, UPDATE, DELETE, and INSERT? For instance, on average > how long does a typical SELECT (UPDATE, DELETE, INSERT) statement take to > e

Re: [SQL] Speed of SQL statements

2001-02-23 Thread Mathijs Brands
On Sun, Feb 18, 2001 at 03:42:43PM -0500, Kevin Quinlan allegedly wrote: > Does anyone have any performance numbers regarding SQL statements, > specifically SELECT, UPDATE, DELETE, and INSERT? For instance, on average > how long does a typical SELECT (UPDATE, DELETE, INSERT) statement take to > e

Re: [SQL] Don't understand creation statement's answer

2000-12-17 Thread Mathijs Brands
On Mon, Dec 18, 2000 at 12:32:54AM +0100, Thomas SMETS allegedly wrote: > tsmets=> create sequence author_seq; > CREATE > > tsmets=> create table author ( > tsmets=> author_id numeric primary key default > nextval('author_seq'), > tsmets=> name char(25) not null, > tsmets=> surn

[SQL] PostgreSQL crashes on me :(

2000-12-17 Thread Mathijs Brands
Hi all, I've been running pgsql database since 6.3 with sizes ranging from a few megabytes to a few hundred megabytes. And ever since 6.5 came out I've had almost no crashes. Until now. We recently installed a small server for an external party to develop websites on. This machine, a K6-233 with

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-13 Thread Mathijs Brands
On Wed, Dec 13, 2000 at 04:49:51PM -0800, Josh Berkus allegedly wrote: > Stuart, > > > I don't think I'd be comfortable with having the node_level column in the > > table structure. First, because you can derive that value using a function, > > it's duplicate data. Second, if you decide to take a

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-13 Thread Mathijs Brands
On Wed, Dec 13, 2000 at 12:09:06PM -0800, Stuart Statman allegedly wrote: > > The way I'd do it if I had to do it again: > > Give each record a unique id, generated by the application. > > Denote levels with extra letters. > > > > So: > > > >AA - Automotive transport > > - Cars >

Re: [SQL] How to represent a tree-structure in a relational database

2000-12-13 Thread Mathijs Brands
On Wed, Dec 13, 2000 at 04:48:47PM +0100, Frank Joerdens allegedly wrote: > I am just thinking about the data model for a little content management system that >I am > currently planning. Individual articles are sorted under different categories which >branch > into subcategories, sub-subcategor

Re: [SQL] a script that queries database periodically

2000-11-27 Thread Mathijs Brands
On Mon, Nov 27, 2000 at 10:44:39PM +0100, Poul L. Christiansen allegedly wrote: > I have a bash script in crontab with the following line: > "lynx -dump > http://127.0.0.1/postgres/myPhpFile.php>${currentDir}php_output.html" > > You can also just put that line directly into crontab. > > Poul L.

Re: [SQL] a script that queries database periodically

2000-11-27 Thread Mathijs Brands
On Mon, Nov 27, 2000 at 11:22:45AM -0800, Bernie Huang allegedly wrote: > Hello, > > My boss wants me to write a script that will send a email report to him > monthly with the result of database queries. > > For example, an email would be like: > > Monthly report > +--+-+---

Re: [SQL] removing a DB??

2000-11-27 Thread Mathijs Brands
On Mon, Nov 27, 2000 at 12:34:38PM +0100, Jens Hartwig allegedly wrote: > Hello Bruno, > > you get a list of all available databases by issuing a query on > "pg_database": > > select * from pg_database; > > What do you mean with "internal DB's"? > > Regards, Jens You can also get a list of

Re: [SQL] problems with postmaster

2000-11-24 Thread Mathijs Brands
On Fri, Nov 24, 2000 at 12:34:29PM -0600, Mike Castle allegedly wrote: > ipcclean > pg_ctl stop > > Though finding out about ipcclean was not easy considering the output > given. There is no mention of it in any of the FAQs. > > mrc You could also use ipcrm manually to clean up the shm segment

Re: [SQL] psql question

2000-11-23 Thread Mathijs Brands
On Thu, Nov 23, 2000 at 07:31:36PM +0100, Peter Eisentraut allegedly wrote: > Joe Conway writes: > > > On machines where I've installed PostgreSQL 7.0.2 from RPM, psql allows use > > of the up arrow key for history and the escape/tab key for command > > completion, but on my remote web host (webp