Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Christopher Browne
> Chris Browne wrote: >> Lukas Smith <[EMAIL PROTECTED]> writes: >> > Bruce Momjian wrote: >> > >> >> * Flush cached query plans when the dependent objects change, >> >> when the cardinality of parameters changes dramatically, or >> >> when new ANALYZE statistics are available >> > >> > W

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Christopher Browne
> Lukas Smith <[EMAIL PROTECTED]> writes: >> Bruce Momjian wrote: >>> * Flush cached query plans when the dependent objects change, >>> when the cardinality of parameters changes dramatically, or >>> when new ANALYZE statistics are available > >> Wouldn't it also make sense to flush a cached query

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Tom Lane
Lukas Smith <[EMAIL PROTECTED]> writes: > Bruce Momjian wrote: >> * Flush cached query plans when the dependent objects change, >> when the cardinality of parameters changes dramatically, or >> when new ANALYZE statistics are available > Wouldn't it also make sense to flush a cached query plan whe

Re: [HACKERS] Log of CREATE USER statement

2005-12-17 Thread Peter Eisentraut
Marko Kreen wrote: > > Maybe we should provide a backslash command in psql for secure > > password entry, say, \password [username]. This would then ask for > > the password through a somewhat secure, unlogged channel, encrypt > > it, and send an ALTER ROLE command to the server. > > Letting creat

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Bruce Momjian
Chris Browne wrote: > Lukas Smith <[EMAIL PROTECTED]> writes: > > Bruce Momjian wrote: > > > >>* Flush cached query plans when the dependent objects change, > >> when the cardinality of parameters changes dramatically, or > >> when new ANALYZE statistics are available > > > > Wouldn't

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Chris Browne
Lukas Smith <[EMAIL PROTECTED]> writes: > Bruce Momjian wrote: > >> * Flush cached query plans when the dependent objects change, >>when the cardinality of parameters changes dramatically, or >>when new ANALYZE statistics are available > > Wouldn't it also make sense to flush a

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Lukas Smith
Bruce Momjian wrote: * Flush cached query plans when the dependent objects change, when the cardinality of parameters changes dramatically, or when new ANALYZE statistics are available Wouldn't it also make sense to flush a cached query plan when after execution it

Re: [HACKERS] number of loaded/unloaded COPY rows

2005-12-17 Thread Tom Lane
Bruce Momjian writes: > I think we are at a point that people running on systems with no int64 > support should not expect to get valid return values for >2 billion row > COPY operations. I agree, there's no need to work harder on this than changing the datatype to uint64. There are some places

Re: [HACKERS] number of loaded/unloaded COPY rows

2005-12-17 Thread Bruce Momjian
Also, can I get a context diff for the patch? See the developers FAQ for information on how our patch process works. Thanks. --- Volkan YAZICI wrote: > On Dec 16 08:47, Bruce Momjian wrote: > > I think an int64 is the prop

Re: [HACKERS] number of loaded/unloaded COPY rows

2005-12-17 Thread Bruce Momjian
Volkan YAZICI wrote: > On Dec 16 08:47, Bruce Momjian wrote: > > I think an int64 is the proper solution. If int64 isn't really > > 64-bits, the code should still work though. > > (I'd prefer uint64 instead of an int64.) In src/include/c.h, in > this or that way it'll assign a type for uint64, so

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Bruce Momjian
Jim C. Nasby wrote: > Is cardinality the only thing we'd need to worry about? My idea was > actually to track the amount of work normally required by a stored query > plan, and if a query uses that plan but requires a very different amount > of work it's a good indication that we either need to rep

Re: [HACKERS] Automatic function replanning

2005-12-17 Thread Jim C. Nasby
Is cardinality the only thing we'd need to worry about? My idea was actually to track the amount of work normally required by a stored query plan, and if a query uses that plan but requires a very different amount of work it's a good indication that we either need to replan or store multiple plans

Re: [HACKERS] psql and COPY BINARY

2005-12-17 Thread Bruce Momjian
Tom Lane wrote: > Andreas Pflug <[EMAIL PROTECTED]> writes: > > Examining why psql won't do sensible stuff with COPY BINARY, I realized > > that psql still uses PQgetline, which is marked obsolete since 7.4. > > Is this intentional or just a "never reviewed because it works"? > > There wasn't an

Re: [HACKERS] number of loaded/unloaded COPY rows

2005-12-17 Thread Volkan YAZICI
On Dec 16 08:47, Bruce Momjian wrote: > I think an int64 is the proper solution. If int64 isn't really > 64-bits, the code should still work though. (I'd prefer uint64 instead of an int64.) In src/include/c.h, in this or that way it'll assign a type for uint64, so there won't be any problem for bo

Re: [HACKERS] Immodest Proposal: pg_catalog.pg_ddl

2005-12-17 Thread Bruce Momjian
Christopher Kings-Lynne wrote: > >>What I would like to see is some builtin functions that give me the > >>table's DDL, just as pg_dump does. Extra nice would be complementary > >>functions that also give me skeleton select statements for each table or > >>view. > > > > > > Yeah, what I first