[HACKERS] Indexing and regular expressions

2002-04-07 Thread Kjartan Ásþórsson
Is there any indexing technique available I can use when joining tables with a regular expression pattern in pgsql? I know one method for indexing strings that will be matched with regular expression patterns, and that is using so called k-gram indexes. Indexing the string "kjartan" with k-gram i

Re: [HACKERS] Indexing and regular expressions

2002-04-07 Thread Oleg Bartunov
On Sun, 7 Apr 2002, [ISO-8859-1] Kjartan Ásþórsson wrote: > Is there any indexing technique available I can use when joining tables > with a regular expression pattern in pgsql? > > I know one method for indexing strings that will be matched with regular > expression patterns, and that is using s

Re: [HACKERS] What's the CURRENT schema ?

2002-04-07 Thread Hiroshi Inoue
> -Original Message- > From: Tom Lane [mailto:[EMAIL PROTECTED]] > > Fernando Nasser <[EMAIL PROTECTED]> writes: > > Christopher Kings-Lynne wrote: > >> You know, I'm kinda surprised that the spec doesn't define a > CURRENT_SCHEMA > >> variable you can query??? > > > Maybe because it would

Re: [HACKERS] Indexing and regular expressions

2002-04-07 Thread Kjartan Бsюуrsson
Thank you for your reply. No, I am not looking for a fuzzy match. I am simply wondering if there are some methods available that can speed up joining of tables when the join is done with a regular expression operator (one table contains regular expression patterns, and the other strings that shou

Re: [HACKERS] Suggestion for optimization

2002-04-07 Thread Gavin Sherry
On Fri, 5 Apr 2002, Barry Lind wrote: > Af far as I know Oracle doesn't have any short cut (along the lines of > what is being discussed in this thread) for this operation. However > Oracle is more efficient in providing the answer than postgres currently > is. While postgres needs to perfor

Re: [HACKERS] Suggestion for optimization

2002-04-07 Thread mlw
Tom Lane wrote: > > Doug McNaught <[EMAIL PROTECTED]> writes: > > "Dann Corbit" <[EMAIL PROTECTED]> writes: > >> It would be nice if total table cardinality could be maintained live. > > > How would this work with MVCC? > > It wouldn't. That's why it's not there. Under MVCC, table cardinality

Re: [HACKERS] PQescapeBytea is not multibyte aware

2002-04-07 Thread Joe Conway
Tatsuo Ishii wrote: > BTW, for the 7.2.x tree we need a solution with lesser impact. > For this purpose, I would like to change PQescapeBytea as I stated in > the previous mail. Objection? > -- > Tatsuo Ishii No objection here, but can we wrap the change in #ifdef MULTIBYTE so there's no effect

Re: [HACKERS] PQescapeBytea is not multibyte aware

2002-04-07 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > No objection here, but can we wrap the change in #ifdef MULTIBYTE so > there's no effect for people who don't use MULTIBYTE? That opens up the standard set of issues about "what if your server is MULTIBYTE but your libpq is not?" It seems risky to me.

Re: [HACKERS] Indexing and regular expressions

2002-04-07 Thread Neil Conway
On Sun, 7 Apr 2002 13:49:08 +0200 "Kjartan " <[EMAIL PROTECTED]> wrote: > Thank you for your reply. > > No, I am not looking for a fuzzy match. I am simply wondering if there > are some methods available that can speed up joining of tables when > the join is done with a regular expression operato

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Bruce Momjian
> > > Probably I'm misunderstanding this thread. > > > Why must the query_timeout be reset particularly ? > > > What's wrong with simply issueing set query_timeout > > > command just before every query ? > > > > You could do that, but we also imagine cases where people would want to > > set a tim

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Bruce Momjian
> > I guess it's a matter of definition: Do you consider SET variables > > database state or session metadata? I think some are this and some are > > that. I'm not sure how to draw the line, but throwing everything from one > > category into the other isn't my favorite solution. > > You seem to

Re: [HACKERS] Debugging symbols by default

2002-04-07 Thread Bruce Momjian
I am not sure about the idea of -g by default. I know lyx uses -g by default, and the compile/install takes forever. In fact, I have removed -g from my compiles here because it takes too long to compile/link and I do it too often. When I need to debug, I recompile with -g. My concern is that w

[HACKERS] Question on ident authorization

2002-04-07 Thread Kenny H Klatt
Hello: Not sure of where to post this, it's not a bug, more of an application note.. Using linux and iptables as a firewall, requests for services are redirected to the machines providing those services, including postgress. This approach has been in place for over a year, and includes

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Hiroshi Inoue
Bruce Momjian wrote: > > > > > Probably I'm misunderstanding this thread. > > > > Why must the query_timeout be reset particularly ? > > > > What's wrong with simply issueing set query_timeout > > > > command just before every query ? > > > > > > You could do that, but we also imagine cases where

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Bruce Momjian
> > > Sorry I couldn't understand your point. > > > It seems the simplest and the most certain way is to call > > > 'SET QUERY_TIMEOUT per query. The way dosen't require > > > RESET at all. Is the overhead an issue ? > > > > What about psql and libpq. Doing a timeout before every query is a > >

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Hiroshi Inoue
Bruce Momjian wrote: > > > > I guess it's a matter of definition: Do you consider SET variables > > > database state or session metadata? I think some are this and some are > > > that. I'm not sure how to draw the line, but throwing everything from one > > > category into the other isn't my favo

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Hiroshi Inoue
Bruce Momjian wrote: > > > > > Sorry I couldn't understand your point. > > > > It seems the simplest and the most certain way is to call > > > > 'SET QUERY_TIMEOUT per query. The way dosen't require > > > > RESET at all. Is the overhead an issue ? > > > > > > What about psql and libpq. Doing a t

Re: [HACKERS] Question on ident authorization

2002-04-07 Thread Peter Eisentraut
Kenny H Klatt writes: > Inital testing worked well. When it was decided to have applications > normally directed at production try the development instance, ident > authenication failed. All other tests passed, including hostssl > connections. When the firewall redirects traffic to it

Re: [HACKERS] Suggestion for optimization

2002-04-07 Thread Christopher Kings-Lynne
> > Af far as I know Oracle doesn't have any short cut (along the lines of > > what is being discussed in this thread) for this operation. However > > Oracle is more efficient in providing the answer than postgres > currently > > is. While postgres needs to perform a full scan on the table, Orac

Re: [HACKERS] RFC: Restructuring pg_aggregate

2002-04-07 Thread Christopher Kings-Lynne
> That seems like pure speculation to me, if not outright wrong. If we > can't renumber the attnums it'll be because the table's tuples still > have data at a particular column position. Since we'll need to know > the datatype of that data (if only to skip over it correctly), there > will still

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Bruce Momjian
Hiroshi Inoue wrote: > Bruce Momjian wrote: > > > > > > I guess it's a matter of definition: Do you consider SET variables > > > > database state or session metadata? I think some are this and some are > > > > that. I'm not sure how to draw the line, but throwing everything from one > > > > cat

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Bruce Momjian
Hiroshi Inoue wrote: > Bruce Momjian wrote: > > > > > > > Sorry I couldn't understand your point. > > > > > It seems the simplest and the most certain way is to call > > > > > 'SET QUERY_TIMEOUT per query. The way dosen't require > > > > > RESET at all. Is the overhead an issue ? > > > > > > > >

Re: [HACKERS] Suggestion for optimization

2002-04-07 Thread Bruce Momjian
Christopher Kings-Lynne wrote: > > > Af far as I know Oracle doesn't have any short cut (along the lines of > > > what is being discussed in this thread) for this operation. However > > > Oracle is more efficient in providing the answer than postgres > > currently > > > is. While postgres needs

Re: [HACKERS] RFC: Restructuring pg_aggregate

2002-04-07 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > You know there is a way to do this and not break client compatibility. > Rename the current pg_attribute relation to pg_baseatt or something. Fix > all references to it in the code. Create a system view called pg_attribute > which is SELECT

Re: [HACKERS] PQescapeBytea is not multibyte aware

2002-04-07 Thread Tatsuo Ishii
> Joe Conway <[EMAIL PROTECTED]> writes: > > No objection here, but can we wrap the change in #ifdef MULTIBYTE so > > there's no effect for people who don't use MULTIBYTE? > > That opens up the standard set of issues about "what if your server is > MULTIBYTE but your libpq is not?" It seems ris

Re: [HACKERS] timeout implementation issues

2002-04-07 Thread Thomas Swan
Bruce Momjian wrote: Hiroshi Inoue wrote: Bruce Momjian wrote: I guess it's a matter of definition: Do you consider SET variablesdatabase state or session metadata? I think some are this and some arethat. I'm not sure how to draw the line, but throwing