Re: [HACKERS] savepoint improvements

2007-01-22 Thread Simon Riggs
On Sun, 2007-01-21 at 13:28 -0500, Tom Lane wrote: Jaime Casanova [EMAIL PROTECTED] writes: On 1/21/07, Simon Riggs [EMAIL PROTECTED] wrote: - continue on error i.e. COMMIT can/might succeed - though there are still cases where it cannot, such as a serializable exception. and what

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Simon Riggs
On Sun, 2007-01-21 at 14:26 -0600, Jim C. Nasby wrote: On Sun, Jan 21, 2007 at 11:39:45AM +, Heikki Linnakangas wrote: Russell Smith wrote: Strange idea that I haven't researched, Given Vacuum can't be run in a transaction, it is possible at a certain point to quit the current

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Csaba Nagy
On Sat, 2007-01-20 at 18:08, Merlin Moncure wrote: [snip] To be honest, I'm not a huge fan of psql tricks (error recovery being another example) but this could provide a solution. in your opnion, how would you use \if to query the transaction state? Wouldn't it make sense to introduce

[HACKERS] STOP all user access except for admin for a few minutes?

2007-01-22 Thread org
Hi there, Is is possible to stop all user access to postgres, but still give access to admin? Just temporarily, not a security setup. Something like, stop all users but allow user x and y. thx ---(end of broadcast)--- TIP 5: don't forget to

Re: [HACKERS] STOP all user access except for admin for a few minutes?

2007-01-22 Thread Russell Smith
[EMAIL PROTECTED] wrote: Hi there, Is is possible to stop all user access to postgres, but still give access to admin? Just temporarily, not a security setup. Something like, stop all users but allow user x and y. You could restart in single user mode, or alter pg_hba.conf to allow the

Re: [HACKERS] STOP all user access except for admin for a few minutes?

2007-01-22 Thread Peter Eisentraut
Am Montag, 22. Januar 2007 10:32 schrieb [EMAIL PROTECTED]: Is is possible to stop all user access to postgres, but still give access to admin? Make the appropriate adjustments to pg_hba.conf. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of

[HACKERS] Strange file in snapshot tarball

2007-01-22 Thread ITAGAKI Takahiro
Hello, There is a file 'compat_informix-dec_test-OpenBSD3.8.broken.stdout' under the path 'src/interfaces/ecpg/test/extedted/' in the recent ftp snapshot (postgresql-snapshot.tar.gz). All of the other files are placed under 'postgresql-snapshot/...'. Is this intentional or a mistake? Regards,

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Heikki Linnakangas
Russell Smith wrote: 2. Index cleanup is the most expensive part of vacuum. So doing a partial vacuum actually means more I/O as you have to do index cleanup more often. I don't think that's usually the case. Index(es) are typically only a fraction of the size of the table, and since 8.2 we

Re: [HACKERS] Strange file in snapshot tarball

2007-01-22 Thread Michael Meskes
On Mon, Jan 22, 2007 at 08:00:26PM +0900, ITAGAKI Takahiro wrote: There is a file 'compat_informix-dec_test-OpenBSD3.8.broken.stdout' under the path 'src/interfaces/ecpg/test/extedted/' in the recent ftp snapshot (postgresql-snapshot.tar.gz). All of the other files are placed under

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Csaba Nagy [EMAIL PROTECTED] wrote: On Sat, 2007-01-20 at 18:08, Merlin Moncure wrote: [snip] To be honest, I'm not a huge fan of psql tricks (error recovery being another example) but this could provide a solution. in your opnion, how would you use \if to query the transaction

[HACKERS] Piggybacking vacuum I/O

2007-01-22 Thread Heikki Linnakangas
I've been looking at the way we do vacuums. The fundamental performance issue is that a vacuum generates nheapblocks+nindexblocks+ndirtyblocks I/Os. Vacuum cost delay helps to spread the cost like part payment, but the total is the same. In an I/O bound system, the extra I/O directly leads to

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/21/07, Tom Lane [EMAIL PROTECTED] wrote: Jaime Casanova [EMAIL PROTECTED] writes: On 1/21/07, Simon Riggs [EMAIL PROTECTED] wrote: - continue on error i.e. COMMIT can/might succeed - though there are still cases where it cannot, such as a serializable exception. and what should be the

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 09:25 -0500, Merlin Moncure wrote: On 1/21/07, Tom Lane [EMAIL PROTECTED] wrote: Jaime Casanova [EMAIL PROTECTED] writes: On 1/21/07, Simon Riggs [EMAIL PROTECTED] wrote: - continue on error i.e. COMMIT can/might succeed - though there are still cases where it

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Simon Riggs [EMAIL PROTECTED] wrote: Could you post an example, just so we're all clear what the problems are? I thought I understood what you are requesting; I may not. ok, The short version is I would like the ability to run some sql commands and recover the transaction if an

[HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Simon Riggs
There is currently a performance tip to run ANALYZE after a pg_dump script has been restored. ISTM that pg_dump should default to have ANALYZE statements for a table, when both table definition and data are dumped. If only data (-a) or only table definition (-s) is dumped the default should be to

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Tom Lane
Merlin Moncure [EMAIL PROTECTED] writes: On 1/22/07, Simon Riggs [EMAIL PROTECTED] wrote: Could you post an example, just so we're all clear what the problems are? I thought I understood what you are requesting; I may not. ok, The short version is I would like the ability to run some sql

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Martijn van Oosterhout
On Mon, Jan 22, 2007 at 10:40:37AM -0500, Merlin Moncure wrote: The short version is I would like the ability to run some sql commands snip any error updating foo or bar will blow up the whole thing. Maybe this is desirable, but it is often nice to be able to do some error handling here.

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Tom Lane
Simon Riggs [EMAIL PROTECTED] writes: ISTM that pg_dump should default to have ANALYZE statements for a table, when both table definition and data are dumped. If only data (-a) or only table definition (-s) is dumped the default should be to *not* add an ANALYZE statement. Having pg_dump emit

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Stefan Kaltenbrunner
Simon Riggs wrote: There is currently a performance tip to run ANALYZE after a pg_dump script has been restored. ISTM that pg_dump should default to have ANALYZE statements for a table, when both table definition and data are dumped. If only data (-a) or only table definition (-s) is dumped the

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Gregory Stark
Simon Riggs [EMAIL PROTECTED] writes: There doesn't seem to be any reason to skip the ANALYZE, but I'll implement it as an option. -z on | off --analyze=on | off Only an aesthetic comment: Short options don't usually take on/off arguments, I would suggest making the default be to

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 10:46 -0500, Tom Lane wrote: Merlin Moncure [EMAIL PROTECTED] writes: On 1/22/07, Simon Riggs [EMAIL PROTECTED] wrote: Could you post an example, just so we're all clear what the problems are? I thought I understood what you are requesting; I may not. ok, The

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Bruce Momjian
Heikki Linnakangas wrote: Russell Smith wrote: 2. Index cleanup is the most expensive part of vacuum. So doing a partial vacuum actually means more I/O as you have to do index cleanup more often. I don't think that's usually the case. Index(es) are typically only a fraction of the

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Heikki Linnakangas
Bruce Momjian wrote: Heikki Linnakangas wrote: Russell Smith wrote: 2. Index cleanup is the most expensive part of vacuum. So doing a partial vacuum actually means more I/O as you have to do index cleanup more often. I don't think that's usually the case. Index(es) are typically only a

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Gregory Stark
Simon Riggs [EMAIL PROTECTED] writes: BEGIN; stmt1; stmt2; -- error stmt3; COMMIT; results in stmt3 completing successfully even though stmt1 and stmt2 do not == broken script. stmt1 would still be completed successfully. -- Gregory Stark EnterpriseDB

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 10:49 -0500, Tom Lane wrote: Simon Riggs [EMAIL PROTECTED] writes: ISTM that pg_dump should default to have ANALYZE statements for a table, when both table definition and data are dumped. If only data (-a) or only table definition (-s) is dumped the default should be

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Martijn van Oosterhout kleptog@svana.org wrote: we're talking about psql, maybe all we need to do is create the commands in psql: \begin_nest \commit_nest \rollback_nest That would work if we could rollback conditionally on failure (like on_error_rollback but with definable

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 16:11 +, Gregory Stark wrote: Simon Riggs [EMAIL PROTECTED] writes: BEGIN; stmt1; stmt2; -- error stmt3; COMMIT; results in stmt3 completing successfully even though stmt1 and stmt2 do not == broken script. stmt1 would still be completed

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Tom Lane [EMAIL PROTECTED] wrote: I'm getting tired of repeating this, but: neither of you have said anything that doesn't appear to me to be handled by ON_ERROR_ROLLBACK. What exactly is lacking in that feature? * the ability to span the savepoint across multiple statements. * the

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Martijn van Oosterhout
On Mon, Jan 22, 2007 at 11:21:12AM -0500, Merlin Moncure wrote: \begin_nest \commit_nest \rollback_nest That would work if we could rollback conditionally on failure (like on_error_rollback but with definable beginning and ending points). I Sorry, rollback conditionally on failure isn't

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Dawid Kuroczko
On 1/22/07, Tom Lane [EMAIL PROTECTED] wrote: The short version is I would like the ability to run some sql commands and recover the transaction if an error occurs. I'm getting tired of repeating this, but: neither of you have said anything that doesn't appear to me to be handled by

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Bruce Momjian
Heikki Linnakangas wrote: Bruce Momjian wrote: Heikki Linnakangas wrote: Russell Smith wrote: 2. Index cleanup is the most expensive part of vacuum. So doing a partial vacuum actually means more I/O as you have to do index cleanup more often. I don't think that's usually the case.

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 12:18 -0500, Bruce Momjian wrote: Heikki Linnakangas wrote: In any case, for the statement Index cleanup is the most expensive part of vacuum to be true, you're indexes would have to take up 2x as much space as the heap, since the heap is scanned twice. I'm sure

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Gregory Stark
Bruce Momjian [EMAIL PROTECTED] writes: I agree it index cleanup isn't 50% of vacuum. I was trying to figure out how small, and it seems about 15% of the total table, which means if we have bitmap vacuum, we can conceivably reduce vacuum load by perhaps 80%, assuming 5% of the table is

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Bruce Momjian
Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of time, but vacuuming to relaim 3% three times seems like it is

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Gregory Stark
Bruce Momjian [EMAIL PROTECTED] writes: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of time, but

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 13:27 -0500, Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Martijn van Oosterhout kleptog@svana.org wrote: I don't understand this either. Everything you can do with nested transactions you can also do with savepoints, so I'm really not understand what the limitations are? Actually, looking at the savepoint documentation, it looks like

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Dawid Kuroczko [EMAIL PROTECTED] wrote: On 1/22/07, Tom Lane [EMAIL PROTECTED] wrote: The short version is I would like the ability to run some sql commands and recover the transaction if an error occurs. I'm getting tired of repeating this, but: neither of you have said

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Alvaro Herrera
Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of time, but vacuuming to relaim 3%

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Alvaro Herrera
Merlin Moncure wrote: On 1/22/07, Dawid Kuroczko [EMAIL PROTECTED] wrote: one for each INSERT+UPDATE block. This way eiher both of them succeed or fail, within one transaction. i think so...Martijn said it best: you can 'rollback' to, but you can't 'commit' to. The 'commit to' would be

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Richard Huxton
Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of time, but vacuuming to relaim 3% three

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Heikki Linnakangas
Gregory Stark wrote: Bruce Momjian [EMAIL PROTECTED] writes: I agree it index cleanup isn't 50% of vacuum. I was trying to figure out how small, and it seems about 15% of the total table, which means if we have bitmap vacuum, we can conceivably reduce vacuum load by perhaps 80%, assuming 5%

Re: [HACKERS] savepoint improvements

2007-01-22 Thread Merlin Moncure
On 1/22/07, Alvaro Herrera [EMAIL PROTECTED] wrote: i think so...Martijn said it best: you can 'rollback' to, but you can't 'commit' to. The 'commit to' would be the arguably much more useful way of disposing of a savepoint. But that should be taken up with sql standards committee :(. You

[HACKERS] autovacuum process handling

2007-01-22 Thread Alvaro Herrera
Hi, This is how I think autovacuum should change with an eye towards being able to run multiple vacuums simultaneously: 1. There will be two kinds of processes, autovacuum launcher and autovacuum worker. 2. The launcher will be in charge of scheduling and will tell workers what to do 3. The

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Heikki Linnakangas
Kenneth Marshall wrote: On Mon, Jan 22, 2007 at 06:42:09PM +, Simon Riggs wrote: Hold that thought! Read Heikki's Piggyback VACUUM idea on new thread... There may be other functions that could leverage a similar sort of infrastructure. For example, a long DB mining query could be

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Bruce Momjian
Alvaro Herrera wrote: Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is going to take a lot of time, but

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Ron Mayer
Gregory Stark wrote: Actually no. A while back I did experiments to see how fast reading a file sequentially was compared to reading the same file sequentially but skipping x% of the blocks randomly. The results were surprising (to me) and depressing. The breakeven point was about 7%. [...]

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Joris Dobbelsteen
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Stark Sent: maandag 22 januari 2007 19:41 To: Bruce Momjian Cc: Heikki Linnakangas; Russell Smith; Darcy Buskermolen; Simon Riggs; Alvaro Herrera; Matthew T. O'Connor; Pavan Deolasee; Christopher

Re: [HACKERS] autovacuum process handling

2007-01-22 Thread Matthew T. O'Connor
Alvaro Herrera wrote: This is how I think autovacuum should change with an eye towards being able to run multiple vacuums simultaneously: [snip details] Does this raise some red flags? It seems straightforward enough to me; I'll submit a patch implementing this, so that scheduling will

[HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Joshua D. Drake
Or so... :) Thought I would do a poll of what is happening in the world for 8.3. I have: Alvaro Herrera: Autovacuum improvements (maintenance window etc..) Gavin Sherry: Bitmap Indexes (on disk), possible basic Window functions Jonah Harris: WITH/Recursive Queries? Andrei Kovalesvki: Some Win32

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Jonah H. Harris
On 1/22/07, Joshua D. Drake [EMAIL PROTECTED] wrote: Jonah Harris: WITH/Recursive Queries? Yup, just talked with Bruce about this last week. Working on the design now. -- Jonah H. Harris, Software Architect | phone: 732.331.1324 EnterpriseDB Corporation| fax: 732.331.1301 33 Wood

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Kenneth Marshall
On Mon, Jan 22, 2007 at 06:42:09PM +, Simon Riggs wrote: On Mon, 2007-01-22 at 13:27 -0500, Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to

Re: [HACKERS] Piggybacking vacuum I/O

2007-01-22 Thread Simon Riggs
On Mon, 2007-01-22 at 13:41 +, Heikki Linnakangas wrote: Any thoughts before I start experimenting? Probably only to detail the various use cases we are discussing. My thoughts on various use cases are: - small table with frequent update/delete, heap and indexes all/mostly cached e.g.

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Kenneth Marshall
On Mon, Jan 22, 2007 at 07:24:20PM +, Heikki Linnakangas wrote: Kenneth Marshall wrote: On Mon, Jan 22, 2007 at 06:42:09PM +, Simon Riggs wrote: Hold that thought! Read Heikki's Piggyback VACUUM idea on new thread... There may be other functions that could leverage a similar sort of

Re: [HACKERS] [BUGS] BUG #2907: pg_get_serial_sequence quoting

2007-01-22 Thread Adriaan van Os
Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: I presume the reason for that is that the first paramater can be qualified: select pg_get_serial_sequence('public.FOO', 'Ff1'); Would someone explain why qualification makes us lowercase the first parameter by default? I don't

[HACKERS] send password to pg_dump

2007-01-22 Thread shaunc
Hello, I'm trying to run pg_dump programmatically, and I'm wondering how I can send it a password. I'm running it with a system() call in a child process, and sending the password in from the parent process on stdin, but somehow pg_dump always finds out how to ask my terminal for a password.

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Oleg Bartunov
On Mon, 22 Jan 2007, Joshua D. Drake wrote: Or so... :) Thought I would do a poll of what is happening in the world for 8.3. I have: Alvaro Herrera: Autovacuum improvements (maintenance window etc..) Gavin Sherry: Bitmap Indexes (on disk), possible basic Window functions Jonah Harris:

Re: [HACKERS] send password to pg_dump

2007-01-22 Thread Andrew Dunstan
shaunc wrote: Hello, I'm trying to run pg_dump programmatically, and I'm wondering how I can send it a password. I'm running it with a system() call in a child process, and sending the password in from the parent process on stdin, but somehow pg_dump always finds out how to ask my terminal for

Re: [HACKERS] Piggybacking vacuum I/O

2007-01-22 Thread Jim C. Nasby
On Mon, Jan 22, 2007 at 02:51:47PM +, Heikki Linnakangas wrote: I've been looking at the way we do vacuums. The fundamental performance issue is that a vacuum generates nheapblocks+nindexblocks+ndirtyblocks I/Os. Vacuum cost delay helps to spread the cost like part payment, but the

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Jim C. Nasby
On Mon, Jan 22, 2007 at 12:17:39PM -0800, Ron Mayer wrote: Gregory Stark wrote: Actually no. A while back I did experiments to see how fast reading a file sequentially was compared to reading the same file sequentially but skipping x% of the blocks randomly. The results were surprising

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Jim C. Nasby
On Mon, Jan 22, 2007 at 03:40:17PM +, Simon Riggs wrote: This would add a table-specific ANALYZE statement following each table's actions. It'd probably be best to put it before any index creating activities, since there's a better chance of everything from the table being in shared

Re: [pgsql-patches] [HACKERS] Win32 WEXITSTATUS too

2007-01-22 Thread Bruce Momjian
bruce wrote: Tom Lane wrote: Alvaro Herrera [EMAIL PROTECTED] writes: Bruce Momjian wrote: OK, maybe /doc or src/tools. A more radical approach would be to put the list in our documentation, or have initdb install it. Why not put it in techdocs or some such? I think we've

Re: [HACKERS] autovacuum process handling

2007-01-22 Thread Jim C. Nasby
On Mon, Jan 22, 2007 at 04:24:28PM -0300, Alvaro Herrera wrote: 4. Launcher will be a continuously-running process, akin to bgwriter; connected to shared memory So would it use up a database connection? 5. Workers will be direct postmaster children; so postmaster will get SIGCHLD when

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Steve Atkins
On Jan 22, 2007, at 11:16 AM, Richard Huxton wrote: Bruce Momjian wrote: Yep, agreed on the random I/O issue. The larger question is if you have a huge table, do you care to reclaim 3% of the table size, rather than just vacuum it when it gets to 10% dirty? I realize the vacuum is

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread korryd
Thought I would do a poll of what is happening in the world for 8.3. I have: Alvaro Herrera: Autovacuum improvements (maintenance window etc..) Gavin Sherry: Bitmap Indexes (on disk), possible basic Window functions Jonah Harris: WITH/Recursive Queries? Andrei Kovalesvki: Some Win32 work

Re: [HACKERS] -f output file option for pg_dumpall

2007-01-22 Thread elein
On Mon, Jan 15, 2007 at 10:13:16AM -0500, Andrew Dunstan wrote: Neil Conway wrote: On Thu, 2007-01-11 at 14:36 -0500, Neil Conway wrote: I don't think they need to be integrated any time soon, but if we were to design pg_dump and pg_dumpall from scratch, it seems more logical to use a

Re: [HACKERS] -f output file option for pg_dumpall

2007-01-22 Thread Andrew Dunstan
elein wrote: On Mon, Jan 15, 2007 at 10:13:16AM -0500, Andrew Dunstan wrote: Neil Conway wrote: On Thu, 2007-01-11 at 14:36 -0500, Neil Conway wrote: I don't think they need to be integrated any time soon, but if we were to design pg_dump and pg_dumpall from scratch, it seems more logical

Re: [HACKERS] Strange file in snapshot tarball

2007-01-22 Thread ITAGAKI Takahiro
Michael Meskes [EMAIL PROTECTED] wrote: There is a file 'compat_informix-dec_test-OpenBSD3.8.broken.stdout' under the path 'src/interfaces/ecpg/test/extedted/' in the recent ftp snapshot (postgresql-snapshot.tar.gz). Would you please care to explain? I do not understand what you are

[HACKERS] Would this SPI function be useful?

2007-01-22 Thread Jeff Davis
Would it be useful to have an SPI function that returns the OID and namespace of the function being executed? The reason I bring this up is due to a discussion on the PostGIS lists about making the installation able to work in any namespace from one generic SQL script. The problem they have is

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Jeff Davis
On Mon, 2007-01-22 at 14:16 -0800, Joshua D. Drake wrote: I am sure there are more, the ones with question marks are unknowns but heard of in the ether somewhere. Any additions or confirmations? I'd still like to make an attempt at my Synchronized Scanning patch. If freeze is 10 weeks away,

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread ITAGAKI Takahiro
Joshua D. Drake [EMAIL PROTECTED] wrote: Thought I would do a poll of what is happening in the world for 8.3. I have: Alvaro Herrera: Autovacuum improvements (maintenance window etc..) Gavin Sherry: Bitmap Indexes (on disk), possible basic Window functions Jonah Harris: WITH/Recursive

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Stephen Frost
* Joshua D. Drake ([EMAIL PROTECTED]) wrote: Thought I would do a poll of what is happening in the world for 8.3. I have: It seems unlikely that I'm going to have time at the rate things are going but I was hoping to take a whack at default permissions/ownership by schema. Kind of a umask-type

Re: [HACKERS] 10 weeks to feature freeze (Pending Work)

2007-01-22 Thread Stephen Frost
* Joshua D. Drake ([EMAIL PROTECTED]) wrote: Thought I would do a poll of what is happening in the world for 8.3. I have: Another thing which was mentioned previously which I'd really like to see happen (and was discussed on the list...) is replacing the Kerberos support with GSSAPI support and

[HACKERS] Default permissisons from schemas

2007-01-22 Thread Stephen Frost
Greetings, * Stephen Frost ([EMAIL PROTECTED]) wrote: It seems unlikely that I'm going to have time at the rate things are going but I was hoping to take a whack at default permissions/ownership by schema. Kind of a umask-type thing but for schemas instead of roles (though I've thought about

Re: [HACKERS] Piggybacking vacuum I/O

2007-01-22 Thread ITAGAKI Takahiro
Heikki Linnakangas [EMAIL PROTECTED] wrote: Vacuum is done in 3 phases: 1. Scan heap 2. Vacuum index 3. Vacuum heap A variation of the scheme would be to keep scanning pages that are in cache, until the tid list reaches a predefined size, instead of keeping track of which pages have

[HACKERS] Updateable cursors

2007-01-22 Thread FAST PostgreSQL
We are trying to develop the updateable cursors functionality into Postgresql. I have given below details of the design and also issues we are facing. Looking forward to the advice on how to proceed with these issues. Rgds, Arul Shaji 1. Introduction -- This is a combined

Re: [HACKERS] Updateable cursors

2007-01-22 Thread Joshua D. Drake
FAST PostgreSQL wrote: We are trying to develop the updateable cursors functionality into Postgresql. I have given below details of the design and also issues we are facing. Looking forward to the advice on how to proceed with these issues. Rgds, Arul Shaji Would this be something that

Re: [HACKERS] autovacuum process handling

2007-01-22 Thread Alvaro Herrera
Jim C. Nasby wrote: On Mon, Jan 22, 2007 at 04:24:28PM -0300, Alvaro Herrera wrote: 4. Launcher will be a continuously-running process, akin to bgwriter; connected to shared memory So would it use up a database connection? No. It's connected to shared memory and has access to pgstats,

Re: [HACKERS] Updateable cursors

2007-01-22 Thread FAST PostgreSQL
On Tue, 23 Jan 2007 15:48, Joshua D. Drake wrote: FAST PostgreSQL wrote: We are trying to develop the updateable cursors functionality into Postgresql. I have given below details of the design and also issues we are facing. Looking forward to the advice on how to proceed with these

Re: [HACKERS] Updateable cursors

2007-01-22 Thread Joshua D. Drake
FAST PostgreSQL wrote: On Tue, 23 Jan 2007 15:48, Joshua D. Drake wrote: FAST PostgreSQL wrote: We are trying to develop the updateable cursors functionality into Postgresql. I have given below details of the design and also issues we are facing. Looking forward to the advice on how to

Re: [HACKERS] Default permissisons from schemas

2007-01-22 Thread Tom Lane
Stephen Frost [EMAIL PROTECTED] writes: Following up on my reply to Joshua, what I'd like to propose is, for comments and suggestions: ALTER SCHEMA name [ [ WITH ] [ DEFAULT ] option [ ... ] ] where option can be: { GRANT { { SELECT | INSERT | UPDATE | DELETE | RULE |

Re: [HACKERS] Updateable cursors

2007-01-22 Thread Lukas Kahwe Smith
Joshua D. Drake wrote: Great! I will put it on my, Remember to bug Arul list :) Hey Joshua, could you put this stuff here: http://developer.postgresql.org/index.php/Todo:WishlistFor83 I will try to find some time during this week (likely on the weekend) to also try and figure out if these

Re: [HACKERS] pg_dump ANALYZE statements

2007-01-22 Thread Tom Lane
Jim C. Nasby [EMAIL PROTECTED] writes: On Mon, Jan 22, 2007 at 03:40:17PM +, Simon Riggs wrote: This would add a table-specific ANALYZE statement following each table's actions. It'd probably be best to put it before any index creating activities, No, because then you'd fail to

Re: [HACKERS] Updateable cursors

2007-01-22 Thread Joshua D. Drake
Lukas Kahwe Smith wrote: Joshua D. Drake wrote: Great! I will put it on my, Remember to bug Arul list :) Hey Joshua, could you put this stuff here: http://developer.postgresql.org/index.php/Todo:WishlistFor83 Sure if you bother to unlock the page for me ;) I will try to find some

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Martijn van Oosterhout
On Mon, Jan 22, 2007 at 05:51:53PM +, Gregory Stark wrote: Actually no. A while back I did experiments to see how fast reading a file sequentially was compared to reading the same file sequentially but skipping x% of the blocks randomly. The results were surprising (to me) and depressing.