[GENERAL] Cost of max

2000-12-28 Thread Stefano Bargioni
t=43.00 rows=1000 width=4) -- Dott. Stefano Bargioni Biblioteca della Pontificia Universita' della Santa Croce - Roma <mailto:[EMAIL PROTECTED]> <http://www.usc.urbe.it> Personal web page:<http://www.usc.urbe.it/html/php.script?bargioni> --- "Si apud b

[GENERAL] Re: Very slow select

2000-12-22 Thread Stefano Bargioni
> Stefano Bargioni writes: > > SELECT FROM t WHERE a='my string'; works very fast. The same select > > made on b is very slow (2 or 3 seconds), as if no index exists for > > column b. > > What does EXPLAIN say about the two queries? > >

[GENERAL] Very slow select

2000-12-21 Thread Stefano Bargioni
hy. Note that b contains very long strings, more than 500 chars. Is there a limit in indexing? Thanks. Stefano -- Dott. Stefano Bargioni Biblioteca della Pontificia Universita' della Santa Croce - Roma <mailto:[EMAIL PROTECTED]> <http://www.usc.urbe.it> Personal web page:

[GENERAL] Indexing arrays

2000-12-06 Thread Stefano Bargioni
| var | +--+--+---+ How can I create an index for schedule? I need to index every occurrence of this array. Thanks. Stefano -- Dott. Stefano Bargioni Biblioteca della Pontificia Universita' della Santa Croce - Roma <mailto:

Re: [GENERAL] Alternate location

2000-03-22 Thread Stefano Bargioni
Peter Eisentraut wrote: > On Wed, 22 Mar 2000, Stefano Bargioni wrote: > > > $ PGDATA2=/data > > $ initlocation $PGDATA2 > > initlocation PGDATA2 > > > We are initializing the database area with username postgres (uid=40). > > This user will own all the fil

[GENERAL] Alternate location

2000-03-22 Thread Stefano Bargioni
t. Stefano -- Dott. Stefano Bargioni Biblioteca della Pontificia Universita' della Santa Croce - Roma <mailto:[EMAIL PROTECTED]> <http://www.usc.urbe.it> Personal web page:<http://www.usc.urbe.it/html/php.script?bargioni> --- "Si apud bibliothecam hortulum habes, nihil deerit" (Cicerone) ---

Re: [GENERAL] Problem with LIKE operator

2000-03-21 Thread Stefano Bargioni
gt; is '(4)'. > > I have tried to escape the brackets with '\\(4\\)' or with ' \(4\)' but > it doesn't work. > > How can i do it ? > > Gabi :-) Try select code from codes where code ~ '(4)' ; HTH. Stefano -- Dott.