[GENERAL] Set valued attributes ?

2000-07-25 Thread Nico D
Does anyone know how to make an attribute a collection of OIDs? I haven't found any reference of this object-oriented feature in Postgres online manuals. Please, let me know any hints/links or anything that could help me doing the following: === Assume that each row of tables is identified by OI

Re: [GENERAL] 4 billion record limit?

2000-07-25 Thread Tom Lane
Paul Caskey <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> It's only a hard limit if your application assumes OIDs are unique. >> If you don't assume that, then I think it's not a big problem. >> >> It's possible (though obviously not especially likely) that you might >> get OID collisions in t

Re: [GENERAL] General Trigger Functions

2000-07-25 Thread Jan Wieck
[EMAIL PROTECTED] wrote: > Hi, > > Is there a way to write a "generic" trigger function in postgres > that can loop thru a table's cloumns (using TG_RELNAME) > and perform certain activities based on, say, certain column-types? > In other words, is it possible to assign OLD. > and NEW. to a variab

Re: [GENERAL] can disks be read only?

2000-07-25 Thread Tom Lane
mikeo <[EMAIL PROTECTED]> writes: > we wish to have a database that is history so we > want to make the disks read only after loading. > would this cause any problems with POSTGRES? In theory you could do it given that you vacuum the tables before locking down the files. (The vacuum is need

Re: [GENERAL] nested transactions

2000-07-25 Thread ryan
Gilles DAROLD wrote: > > jprem wrote: > > > hello , > >postgreqsl 6.5.3 does not support nested transactions. > > so i don't think it will be suitable for e-com application.isn't it ? > > does postgreqsl 7.0 support nested transacions ? is postgresql 7.0 a > > stable version ? > >

(Fwd) RE: [GENERAL] PostgreSQL, ODBC, Access (solution for me)

2000-07-25 Thread Joel Burton
> > Here's a bothersome issue: I've got the most recent versions of > > Postgres, ODBC client for Win32, and Access 97. My client can enter > > new records fine via a linked table. However, when she goes back to > > add data to a column, she gets the following error: > > > > message box title

Re: [GENERAL] 4 billion record limit?

2000-07-25 Thread Peter Eisentraut
Joseph Shraibman writes: > I'm not too familiar with the postgres internals, but the oid tells > postgres where the row is stored in the filesystem. So by the time > you've run out of oid's you've probably run out of space on your > filesystem. The `tid' specifies the storage location. The `oid'

Re: [GENERAL] Hints about how to debug pg_dump problem?

2000-07-25 Thread Peter Eisentraut
Philip Warner writes: > >The read eventually dies with a parse error. I'm sure there must be > >something wrong in my source database that I'm getting this, but I don't > >even know where to begin tracking down the problem. I've dumped and re-read > >this database before, but I've added the dat

Re: [GENERAL] ROLLBACK automatically

2000-07-25 Thread Peter Eisentraut
Chris Bitmead writes: > Is this behaviour some kind of standard? Can it be changed? In the past the answer to the question "Does a statement-level error warrant a transaction abort?" has usually hinged on the interpretation of the following clauses of the SQL92 standard. 3.3.4.1 Exceptions

RE: [GENERAL] Describe structure.

2000-07-25 Thread Peter Eisentraut
Wilkinson Charlie E writes: > While we're on the topic, can someone tell me where '\d *' went, and what to > use instead? > That particular command seems to have disappeared in PG7. Hmm, that must have been me. What did it do? Describe all tables at once? -- Peter Eisentraut

[GENERAL] General Trigger Functions

2000-07-25 Thread mjp
Hi, Is there a way to write a "generic" trigger function in postgres that can loop thru a table's cloumns (using TG_RELNAME) and perform certain activities based on, say, certain column-types? In other words, is it possible to assign OLD. and NEW. to a variable inside triggers? Thanks, Morey Par

Re: [GENERAL] Comment #line after pre-processing

2000-07-25 Thread Jan Wieck
Michaël Fiey wrote: > Does anyone know if it's possible to suppress the comment ' #line nn ...' which >appear in the C file, after pre-processing with ecpg. > Thanks > That's not a comment. It's a mechanism used by cpp (and other preprocessors as well) to tell cc1 (the real C c

[GENERAL] Comment #line after pre-processing

2000-07-25 Thread Michaël Fiey
Does anyone know if it's possible to suppress the comment ' #line nn ...' which appear in the C file, after pre-processing with ecpg. Thanks  

[GENERAL] can disks be read only?

2000-07-25 Thread mikeo
hi, we wish to have a database that is history so we want to make the disks read only after loading. would this cause any problems with POSTGRES? it's on a linux 6.2 box with POSTGRES 7.0.2. what we're looking for here is that if the system crashes we can do a fast boot and not have the

Re: [GENERAL] 4 billion record limit?

2000-07-25 Thread Paul Caskey
Tom Lane wrote: > > Chris Bitmead <[EMAIL PROTECTED]> writes: > > Paul Caskey wrote: > >> 1. This implies a hard limit of 4 billion records on a server, right? > > > Basically, yes. > > It's only a hard limit if your application assumes OIDs are unique. > If you don't assume that, then I think

[GENERAL] I wish to thank...

2000-07-25 Thread Scott Holmes
...the list for inadvertently solving my problem about subscripting. I asked for a suggestion about rephrasing a query with "...peopcode[1,2] = my_var". The obvious solution was "...substr(peopcode,1,2)" Thanks for the unrelated question about updates. Scott

Re: [GENERAL] Problems upgrading from v6.4.2 to v7.0.2

2000-07-25 Thread Tom Lane
"Fetter, David M" <[EMAIL PROTECTED]> writes: > Thanks for pointing me in the right direction. I started to look at the > db.out file and I noticed the pg_shadow variables. When I looked at the > newly built postgres 7.0.2 the usesysid for postgres was the same as the > usesysid for sys_request,

RE: [GENERAL] Problems upgrading from v6.4.2 to v7.0.2

2000-07-25 Thread Fetter, David M
Thanks for pointing me in the right direction. I started to look at the db.out file and I noticed the pg_shadow variables. When I looked at the newly built postgres 7.0.2 the usesysid for postgres was the same as the usesysid for sys_request, one of the new accounts I was moving over. I fixed a

RE: [GENERAL] Describe structure.

2000-07-25 Thread Wilkinson Charlie E
Title: RE: [GENERAL] Describe structure. While we're on the topic, can someone tell me where '\d *' went, and what to use instead? That particular command seems to have disappeared in PG7. Thanks for any light-shedding... -cw- > -Original Message- > From: Poul L. Christiansen [ma

Re: [GENERAL] Statistical Analysis

2000-07-25 Thread Guillaume Perréal
Steve Heaven wrote: > > At 20:18 24/07/00 -0400, you wrote: > >Sigh, forgot to mention the solution. There's an undocumented function: > > > > * bool oidrand (oid o, int4 X)- > > * takes in an oid and a int4 X, and will return 'true' > > * about 1/X of the time. > > > >typically used l

Re: [GENERAL] Describe structure.

2000-07-25 Thread bmccoy
On Tue, 25 Jul 2000, anuj wrote: > My table name is tblpg. > I want to see the table structure. > Like oracle have Describe . > What PG have ? or any command. > Thank in advance. > Anuj > > pg=> \d > Database= pg > +--+--+--+ > | Own

Re: [GENERAL] nested transactions

2000-07-25 Thread Gilles DAROLD
jprem wrote: > hello , >postgreqsl 6.5.3 does not support nested transactions. > so i don't think it will be suitable for e-com application.isn't it ? > does postgreqsl 7.0 support nested transacions ? is postgresql 7.0 a > stable version ? Hi, I have around 4000 online shop runnin