Re: [HACKERS] 8.5 TODO: Add comments to output indicating version of pg_dump and of the database server

2009-11-28 Thread Philip Warner
shakahsha...@gmail.com wrote: -- PostgreSQL database dump -- -- pg_dump version: 8.5devel -- -- remote database version: 8.5devel (80500) -- FWIW, and I havent read the entire thread, but pg_dump already *stores* this information in a custom format. Try: pg_dump -Fc blah pg_restore -L

Re: [HACKERS] Significantly larger toast tables on 8.4?

2009-01-03 Thread Philip Warner
Tom Lane wrote: It would be fairly easy, I think, to add some reloption fields that would let these parameters be controlled on a per-table level. Per-column would be much more painful; do we really need that? Another +1 on the per-table setting. Or a config file setting to disable this

Re: [HACKERS] Significantly larger toast tables on 8.4?

2009-01-03 Thread Philip Warner
Alex Hunsaker wrote: For the record I just imported a production database that sits at about ~20G right now with *zero* size increase (rounding to the nearest gigabyte). That's with basically the exact same schema just different data. Guessing you don't have many plain text rows 1M.

Re: [HACKERS] parallel restore vs. windows

2008-12-09 Thread Philip Warner
Tom Lane wrote: I think pretty much everybody except Philip Warner has found the stuff around the TOC data structure and the archiver API to be confusing. I'm not immediately sure about a better design though, at least not if you don't want to duplicate a lot of code between the plain pg_dump

[HACKERS] PiTR and other architectures....

2008-12-02 Thread Philip Warner
on-disk formats. Question is: Is there a simple way to determine compatibility? (eg. a small well-defined list of requirements) In the specific instance I am working with, I'd like to copy from 64 bit AMD BSD system to a 64 bit Linux system. Philip Warner -- Sent via pgsql-hackers mailing list

Re: [HACKERS] PiTR and other architectures....

2008-12-02 Thread Philip Warner
Jeff Davis wrote: On Tue, 2008-12-02 at 16:21 +0200, Heikki Linnakangas wrote: initdb on one platform, copy the data directory over to the other system, and try to start postmaster. It will complain if the on-disk format is not compatible. You can also run pg_controlinfo on both

Re: [HACKERS] PiTR and other architectures....

2008-12-02 Thread Philip Warner
was hoping it was a simple set of requirements, but that's life. -- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

[HACKERS] Opening a recovering DB in for read-only access?

2008-11-20 Thread Philip Warner
are looking at offloading are large summary-type sequential scans of big tables. -- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] Opening a recovering DB in for read-only access?

2008-11-20 Thread Philip Warner
Alex Hunsaker wrote Uhh sounds like you are describing hot standby (currently in the works for 8.4) see: Yep. That's exactly what I'm talking about. Thanks for the links! -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription:

[HACKERS] Meaning of transaction pg_locks?

2008-11-11 Thread Philip Warner
. -- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 03 5330 3171 | _ \ Fax: (+61) 03

Re: [HACKERS] Meaning of transaction pg_locks?

2008-11-11 Thread Philip Warner
Sorry, should RTFM more closely: If a transaction is waiting for a row-level lock, it will usually appear in the view as waiting for the transaction ID of the current holder of that row lock. so I need to look at the row locks on the blocker. Philip Warner wrote: Hi, Can anyone

Re: [HACKERS] Meaning of transaction pg_locks?

2008-11-11 Thread Philip Warner
Tom Lane wrote: Neither are we, because you left out all the columns that might tell that ... The columns are actually blankit's the other rows I left out with the row-level locks: 925282231 | 925280527 | | 62814 | RowExclusiveLock| t 925282208 | 925280527 |

Re: [HACKERS] Proposed patch: make pg_dump --data-only consider FK constraints

2008-10-14 Thread Philip Warner
Tom Lane wrote: How about printing that notice at the top of the dump file as well? Hmm ... that might be feasible in plain text output, but I don't see any easy way to get a similar effect in archive modes. Just saw this, obviously very late, but from memory there is a TOC entry

Re: [HACKERS] parallel pg_restore design issues

2008-10-05 Thread Philip Warner
Another 0.02c, bringing the grand total to 0.04c. Andrew Dunstan wrote: First, we need a way to decide the boundary between the serially run pre-data section and the remainder of the items in the TOC. Currently the code uses the first TABLEDATA item as the boundary. That's not terribly

Re: [HACKERS] parallel pg_restore - WIP patch

2008-09-29 Thread Philip Warner
+ if (strcmp(te-desc,CONSTRAINT) == 0 || + strcmp(te-desc,FK CONSTRAINT) == 0 || + strcmp(te-desc,CHECK CONSTRAINT) == 0 || +

Re: [HACKERS] parallel pg_restore - WIP patch

2008-09-29 Thread Philip Warner
Andrew Dunstan wrote: Unfortunately, it quite possibly would. You would not be able to build two indexes on the same table in parallel, even though they wouldn't have conflicting locks. I suppose so, but: 1. By the same logic it might speed things up; it might build two completely separate

Re: [HACKERS] new feature: LDAP database name resolution

2006-02-20 Thread Philip Warner
Albe Laurenz wrote: We sometimes need to move a database from one machine to another (hardware old/broken, upgrades, etc.). Now whenever a database is moved to a different computer, all the clients have to address the database at the new hostname. A lower-tech solution is:

Re: [HACKERS] Suggestions for post-mortem...

2006-01-26 Thread Philip Warner
Tom Lane wrote: Define die quite nastily ... you haven't really said what went wrong. We lost data from this table, and ended up with transactions rolled back that were in fact committed (ie. data was in DB, program code thought they were rolled back). End result was we deemed the database

[HACKERS] Suggestions for post-mortem...

2006-01-25 Thread Philip Warner
We just had a DB die quite nastily, and have no clear idea why. Looking in the system logs shows nothing out of the ordinary, and looking in the db logs shows a few odd records: 2006-01-25 12:25:31 EST [mail,5017]: ERROR: failed to fetch new tuple for AFTER trigger 2006-01-25 12:26:01 EST

Re: [HACKERS] Optimizer oddness, possibly compounded in 8.1

2005-12-03 Thread Philip Warner
There's a number of things that can be pushed down over a union set, in certain circumstances. FWIW, you should also be able to push the unions up. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to

[HACKERS] Optimizer oddness, possibly compounded in 8.1

2005-12-02 Thread Philip Warner
The optimizer seems to want to use sequential scans on inherited tables when crossed with another table, as the following seems to demonstrate: Create Table base(f1 bigserial); create table inh1(f2 bigint) inherits (base); create table inh2(f2 bigint) inherits (base); create table inh3(f2

Re: [HACKERS] Optimizer oddness, possibly compounded in 8.1

2005-12-02 Thread Philip Warner
Is it intentional that your test case omits an analyze on t2? No; my mistake. (The larger point that joins of inheritance unions aren't well-planned is true, but it's always been true...) It also seems to have a probkem with unions in views. Is there anything that can be done about this --

Re: [HACKERS] Optimizer oddness, possibly compounded in 8.1

2005-12-02 Thread Philip Warner
Tom Lane wrote: It's something that's on the ever-growing TODO list ... I dunno if anyone has any near-term plans to work on it. It'd definitely be nice to teach the planner to do joins-over-unions well, and then make inheritance just invoke that behavior instead of being a crocky special case.

Re: [HACKERS] Escaping the ARC patent

2005-02-04 Thread Philip Warner
to be set per backend, and the client could use a SET variable to adjust the standard amount for it's own backend. When the client dies/disconnects, the queueing parameter (whatever it is) would be reduced appropriately. Philip

[HACKERS] Allowing VACUUM to time out when waiting for locks?

2005-01-29 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330

Re: [HACKERS] Allowing VACUUM to time out when waiting for

2005-01-29 Thread Philip Warner
At 02:53 AM 30/01/2005, Tom Lane wrote: Philip Warner [EMAIL PROTECTED] writes: We have a frequently updated (peak 5/sec) table with about 1000 rows. We run VACCUM FULL on this table every 5 minutes. Plain vacuum (perhaps executed even more often, like once a minute) will cause fewer locking

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-11-07 Thread Philip Warner
validity) with 8.0b1. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-11-05 Thread Philip Warner
-created indexes as appropriate, whatever that means). Thanks for all the work. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-25 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-25 Thread Philip Warner
one. We need ALTER INDEX or STORE INDEX or whatever if we can't nicely put each index in it's own tablespace. We're only talking PKs aren't we? I'll have to think about this. Philip Warner

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-24 Thread Philip Warner
-tablespace-var that behaves like the schema search path Are there any others? And the best quote from the thread: Philip Warner wrote: soapbox A fact I positively loath! Relying on the 'bluder-on-regardless' approach is not something I'd like to enshrine. /soapbox The 'bluder-on-regardless' phrase

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-20 Thread Philip Warner
solutions: magic-tablespace-var, virtual-tablespaces...all seem to add clunky functionality that will only be used in pg_dump. If we're going to add something, I'd prefer not to add clutter. Philip Warner

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-19 Thread Philip Warner
don't understand? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-19 Thread Philip Warner
for %%tablespace%% in the DEFINTION. Same would apply for indexes etc. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-19 Thread Philip Warner
so all items that are relevant can be dumped with '%%tablespace%%'. pg_dump still constructs CREATE TABLE statements, so that is the natural place to add the tablespace marker and avoid parsing for tables. Philip Warner

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-18 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03

Re: [HACKERS] pg_restore segfault with pg-CVS

2004-09-14 Thread Philip Warner
? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] pg_dump as a bunch of PostgreSQL functions

2004-09-14 Thread Philip Warner
. It would remove/reduce bloat in pg_dump and make the functions available more generally, at the expense of duplicating lots of code for each supported version. /random_idea Philip Warner| __---_ Albatross

Re: [HACKERS] open item: tablespace handing in

2004-09-01 Thread Philip Warner
to work. If it's not there by beta3, I'll just use ALTER commands. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] open item: tablespace handing in

2004-09-01 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax

Re: [HACKERS] open item: tablespace handing in

2004-09-01 Thread Philip Warner
At 10:51 PM 1/09/2004, Philip Warner wrote: Won't be 'till beta2. ...sorry, beta3 Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] FYI: 8.0beta2 on Monday

2004-08-27 Thread Philip Warner
At 03:25 AM 28/08/2004, Tom Lane wrote: If you've got any must fix issues, please get 'em in over the weekend. Is the 'magic_tablespace' variable going to be there? Philip Warner| __---_ Albatross

Re: [HACKERS] compile warnings in HEAD

2004-08-26 Thread Philip Warner
At 12:57 AM 27/08/2004, Bruce Momjian wrote: Has this been fixed? In my local files, yes. I've been waiting on the 'set magic_tablespace' code, but patch to fix the warnings only is attached. Philip Warner

Re: [HACKERS] [PATCHES] ALTER SCHEMA ... SET TABLESPACE

2004-08-23 Thread Philip Warner
; CREATE SCHEMA foo; to behave? Would foo have a default tablespace of some_ts? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] compile warnings in HEAD

2004-08-23 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] New warning in pg_dump

2004-08-23 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] New warning in pg_dump

2004-08-23 Thread Philip Warner
At 01:27 PM 24/08/2004, Tom Lane wrote: I prefer declaring it as unsigned, which means you drop the \377 end instead ... ...I've used explicit values (128) since '\200' is -127. Philip Warner

Re: [HACKERS] New warning in pg_dump

2004-08-23 Thread Philip Warner
At 01:27 PM 24/08/2004, Tom Lane wrote: I prefer declaring it as unsigned, which means you drop the \377 end instead ... No problem. Philip Warner| __---_ Albatross Consulting Pty. Ltd

Re: [HACKERS] [PATCHES] ALTER SCHEMA ... SET TABLESPACE

2004-08-22 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03

Re: [HACKERS] [PATCHES] ALTER SCHEMA ... SET TABLESPACE

2004-08-22 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax

Re: [HACKERS] [PATCHES] ALTER SCHEMA ... SET TABLESPACE

2004-08-22 Thread Philip Warner
alter commands. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81

Re: [HACKERS] [PATCHES] ALTER SCHEMA ... SET TABLESPACE

2004-08-21 Thread Philip Warner
work on schemas? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81

Re: [HACKERS] tablespace and sequences?

2004-08-20 Thread Philip Warner
implementation. I'm happy to do the pg_dump changes, assuming Tom gets the SET stuff sorted out. But would appreciate it if you could do some testing. Philip Warner| __---_ Albatross Consulting Pty. Ltd

Re: [HACKERS] tablespace and sequences?

2004-08-20 Thread Philip Warner
/restore. If the table 'inherited' it's tablespace, then a dump/restore should do nothing (ie. not issue a SET TABLESPACE). Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172 | ___ | Http

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
commands, they will appear as such in the text file. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
to. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax

Re: [HACKERS] Does psql use nested transactions?

2004-08-17 Thread Philip Warner
? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330

Re: [HACKERS] Does psql use nested transactions?

2004-08-17 Thread Philip Warner
, will the 'interactive-session' check consider an included file (\i) to be interactive? I'd vote yes. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] Does psql use nested transactions?

2004-08-17 Thread Philip Warner
At 09:26 AM 18/08/2004, Philip Warner wrote: Also, will the 'interactive-session' check consider an included file (\i) to be interactive? I'd vote yes. In retrospect, I assume the interactive-session limit would not be a problem here since the command would be entered interactively. The source

Re: [HACKERS] pg_dump 'die_on_errors'

2004-08-15 Thread Philip Warner
At 02:32 PM 12/08/2004, Philip Warner wrote: At 01:27 PM 12/08/2004, Bruce Momjian wrote: Set client_min_messages to WARNING? Sounds like a plan. Attached patch sets client_min_messages as above and gives some context to errors messages, eg: pg_restore: [archiver (db)] Error from TOC Entry 19

Re: [HACKERS] pg_dump 'die_on_errors'

2004-08-15 Thread Philip Warner
... Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172 | ___ | Http

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
it's data in a textual format. What are you trying to do? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
dumpfile and it will only restore the items corresponding to lines in listfile. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
can't see another way that won't require constant updates tweaking into the future. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-12 Thread Philip Warner
as multi-statement, and still be parsed. If my assumption in (1) is valid, then I have a very mild preference for it, but am happy with either. Philip Warner| __---_ Albatross Consulting Pty. Ltd

[HACKERS] Does psql use nested transactions?

2004-08-11 Thread Philip Warner
transaction and only rollback that TX? Or is that not possible/desirable. If possible, this would be a *great* feature for those of use prone to mis-spellings. Philip Warner| __---_ Albatross Consulting Pty

[HACKERS] pg_dump 'die_on_errors'

2004-08-11 Thread Philip Warner
Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172 | ___ | Http

Re: [HACKERS] Does psql use nested transactions?

2004-08-11 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61

[HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
start/end. It knows about quotes but not about dollar-quotes. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61

[HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
; $$ LANGUAGE plpgsql; 2004-08-12 01:45:02 ESTzzz,birds: LOG: statement: ALTER FUNCTION public.xxx() OWNER TO birds; Philip Warner| __---_ Albatross Consulting Pty. Ltd

Re: [HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
in and out of the tag? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81

Re: [HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
to look for PQresultStatus(...) == PGRES_COPY_IN for each statement it executes, so it needs to pass statements one at a time. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N

Re: [HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] dollar-quoting in psql and in general

2004-08-11 Thread Philip Warner
? Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] dollar-quoting in psql and in general

2004-08-11 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] dollar-quoting in psql and in general

2004-08-11 Thread Philip Warner
about valid tags, zero or more characters is all I can see. Can you give me a definitive answer as to what is valid? AFAICT, must be [A-Z,a-z,0-9,_]*, with non-numeric start. Is that right? Philip Warner

Re: [HACKERS] pg_dump 'die_on_errors'

2004-08-11 Thread Philip Warner
At 01:27 PM 12/08/2004, Bruce Momjian wrote: Set client_min_messages to WARNING? Sounds like a plan. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
and assume the '$...' was some other valid sql element. From other threads, it sounds like removing the statement detection code entirely is not an option. Philip Warner| __---_ Albatross Consulting Pty

Re: [HACKERS] pg_dump bug fixing

2004-08-02 Thread Philip Warner
At 01:17 PM 3/08/2004, Christopher Kings-Lynne wrote: Would be a bit of work though. I've been looking at this for a while now, and will probably give it a go for 7.6/8. Philip Warner| __---_ Albatross

Re: [HACKERS] pg_dump bug fixing

2004-08-02 Thread Philip Warner
At 02:00 PM 3/08/2004, Christopher Kings-Lynne wrote: I'd be interested in collaborating. Sounds good. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] [PATCHES] Fixes for pg_dump and ownership/acl problems

2004-07-09 Thread Philip Warner
forward, doing it right for future versions would be my vote. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
pg_listener (even if we're not using NOTIFY/LISTEN). Not sure why the ANALYZE is locking the relation, though...but it is locked in AccessShareLock. I can send a log of my investigations if necessary. Philip Warner

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
if we're not using NOTIFY/LISTEN). Not sure why the ANALYZE is locking the relation, though...but it is locked in AccessShareLock. I can send a log of my investigations if necessary. Philip Warner

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
At 06:21 PM 3/05/2004, Philip Warner wrote: 'tuple concurrently updated' The database logs show the same error in each case where a long delay has occurred. And before anyone suggests it, we already have processes in place to prevent to ANALYZEs running at the same time

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
At 06:21 PM 3/05/2004, Philip Warner wrote: 'tuple concurrently updated' I lied. The database DO NOT logs show the same error in each case where a long delay has occurred. It happens sometimes; recent process logs do show the 'async_notify waiting' status, however. I'll try not to send any more

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
At 07:33 PM 3/05/2004, Philip Warner wrote: I'll try not to send any more emails until someone responds ;-) I also noticed this in SIInsertDataEntry sinvaladt.c: /* * Try to prevent table overflow. When the table is 70% full send a * WAKEN_CHILDREN request

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
. The latter seems unlikely since it hangs frequently, and pg_listeners is empty. Does ANALYZE rollback if it dies? Could this account for the delay? Philip Warner| __---_ Albatross Consulting Pty. Ltd

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-03 Thread Philip Warner
(ListenerRelationName, ExclusiveLock); and see how it goes. Thanks for the help. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] cvs: mislinked plpgsql.so ?

2004-05-03 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330

[HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long time?

2004-05-02 Thread Philip Warner
... Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-02 Thread Philip Warner
. The data in the database is extremely dynamic, so the analyze needs to be run regularly; we could run less often but this will just mean the problem happens once per week instead of once per day. Would ACCESS SHARE be OK? Philip

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-02 Thread Philip Warner
pg_catalog.pg_listener INFO: pg_listener: found 0 removable, 0 nonremovable row versions in 0 pages VACUUM Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-02 Thread Philip Warner
At 02:21 PM 3/05/2004, Tom Lane wrote: [blinks...] There's something pretty strange about that. Are you using LISTEN/NOTIFY at all? Nope. Philip Warner| __---_ Albatross Consulting Pty. Ltd

Re: [HACKERS] ANALYZE locks pg_listener in EXCLUSIVE for long

2004-05-02 Thread Philip Warner
. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | _ \ Fax: (+61) 03 5330 3172

Re: [HACKERS] pg_dump end comment

2004-03-30 Thread Philip Warner
--verify dump-file if file integrity is the objective. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83

Re: [HACKERS] Custom format for pg_dumpall

2004-03-22 Thread Philip Warner
At 03:13 AM 17/03/2004, Bruce Momjian wrote: * Allow pg_dumpall to use non-text output formats Is anyone working on this? Philip Warner| __---_ Albatross Consulting Pty. Ltd

  1   2   3   4   5   >