Re: [GENERAL] Counting elements of an array

2001-03-12 Thread Renaud Tthonnart
Sorry!! It works very well! Renaud THONNART > Renaud Tthonnart <[EMAIL PROTECTED]> writes: > > I would like to know how I can get the number of elements of an array. > > There is a function that returns an array's dimensions as a text string: > > regression=# s

Re: [GENERAL] Counting elements of an array

2001-03-12 Thread Renaud Tthonnart
Tom Lane wrote: > Renaud Tthonnart <[EMAIL PROTECTED]> writes: > > I would like to know how I can get the number of elements of an array. > > There is a function that returns an array's dimensions as a text string: > > regression=# select array_dims( &

Re: [GENERAL] libpq++ : Disconnect a DB

2001-03-06 Thread Renaud Tthonnart
Jose Manuel Lorenzo Lopez wrote: > Renaud Tthonnart schrieb: > > > > Good morning everyone, > > > > By declaring a PgDatabase variable like this, I know that I make a > > connection to the DB 'test' > > > > PgDatabase data("dbname

[GENERAL] libpq++ : Disconnect a DB

2001-03-06 Thread Renaud Tthonnart
Good morning everyone, By declaring a PgDatabase variable like this, I know that I make a connection to the DB 'test' PgDatabase data("dbname = test"); How to end connection? By making this? delete data; regards, Renaud THONNART ---(end of broadcast)

Re: [GENERAL] Counting elements of an array

2001-03-02 Thread Renaud Tthonnart
Tom Lane wrote: > Renaud Tthonnart <[EMAIL PROTECTED]> writes: > > I would like to know how I can get the number of elements of an array. > > There is a function that returns an array's dimensions as a text string: > > regression=# select array_dims( &

Re: [GENERAL] Counting elements of an array

2001-03-01 Thread Renaud Tthonnart
Christopher Sawtell wrote: > On Thu, 01 Mar 2001 21:53, you wrote: > > Good morning all, > > > > I would like to know how I can get the number of elements of an array. > > create function array_element_count(_int4) returns integer as ' > declare > a alias for $1; > i integer; > begin > i

[GENERAL] Counting elements of an array

2001-03-01 Thread Renaud Tthonnart
Good morning all, I would like to know how I can get the number of elements of an array. regards, Renaud THONNART

[GENERAL] Object

2001-02-28 Thread Renaud Tthonnart
Can I create object and methods with postgreSQL. And how? Thank in advance, Renaud THONNART

[GENERAL] Create type

2001-02-26 Thread Renaud Tthonnart
If I can't use nested tables, how can I create a type that will be a kind of "dynamic list of structure". regards, Renaud THONNART

[GENERAL] Nested tables

2001-02-26 Thread Renaud Tthonnart
How can I create nested tables ? I haven't find how it can be made in the doc. Could someone give me a little example to create and then insert in nested table? Thank you. Renaud THONNART

Re: [GENERAL] Query with multiples operators BETWEEN

2001-02-23 Thread Renaud Tthonnart
Tom Lane wrote: > > Do a VACUUM ANALYZE, for starters. These results look like the planner > is working with the initial default estimates for a never-vacuumed table. > > > Indexes might be a good idea too. > http://www.postgresql.org/devel-corner/docs/postgres/indices.html > has a good intro to

Re: [GENERAL] Query with multiples operators BETWEEN

2001-02-22 Thread Renaud Tthonnart
Here they are : EXPLAIN (SELECT e.name FROM Observation o, Exposure_EPIC e WHERE o.numObs = e.obs AND e.instrPN IS NOT NULL AND o.RA BETWEEN 3 AND 5); NOTICE: QUERY PLAN: Hash Join (cost=25.02..60.98 rows=33 width=20) -> Seq Scan on exposure_epic e (cost=0.00..22.50 rows=333 width=16

[GENERAL] Query with multiples operators BETWEEN

2001-02-22 Thread Renaud Tthonnart
This qwery takes about 2 seconds : SELECT e.name FROM Observation o, Exposure_EPIC e WHERE o.numObs = e.obs AND e.instrPN IS NOT NULL AND o.RA BETWEEN 3 AND 5; This one about 5 seconds : SELECT e.name FROM Observation o, Exposure_EPIC e WHERE o.numObs = e.obs AND e.instrPN IS NOT NULL

Re: [GENERAL] sequence and stored procedure

2001-02-22 Thread Renaud Tthonnart
Stephan Szabo wrote: > On Wed, 21 Feb 2001, Renaud Tthonnart wrote: > > > How can I use sequences in a stored procedure written with pl/pgsql? > > What exactly are you trying to do? Pretty much you can call the > sequence functions you want to use on the sequence name yo

[GENERAL] sequence and stored procedure

2001-02-21 Thread Renaud Tthonnart
How can I use sequences in a stored procedure written with pl/pgsql? Thanks in advance! Renaud THONNART