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_rest

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 >

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] 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

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

2008-12-02 Thread Philip Warner
nor version?) - same CPU architecture I was hoping it was a simple set of requirements, but that's life. -- -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/

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

[HACKERS] PiTR and other architectures....

2008-12-02 Thread Philip Warner
-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

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: http

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

2008-11-20 Thread Philip Warner
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] 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] 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: >

[HACKERS] Meaning of transaction pg_locks?

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

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 e

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
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 i

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] 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: http://

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 databas

[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 [mail,

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

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 ca

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 --

[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 bigint)

Re: [HACKERS] [PATCHES] Continue transactions after errors in

2005-04-26 Thread Philip Warner
stuff... commit; Also, the blunder-on-regardless approach is popular in pg_dump, or so I'm told ;-). Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 65

Re: [HACKERS] Escaping the ARC patent

2005-02-04 Thread Philip Warner
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. P

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) w

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

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

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

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

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-11-05 Thread Philip Warner
and that this will affect auto-created indexes as appropriate, whatever that means). Thanks for all the work. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ -

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-25 Thread Philip Warner
e same command; This is a hard 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. -------

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-25 Thread Philip Warner
uable. 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] Using ALTER TABLESPACE in pg_dump

2004-10-24 Thread Philip Warner
but not need half a dozen TSs) - magic-tablespace-var that behaves like the schema search path Are there any others? And the best quote from the thread: Philip Warner wrote: > > A fact I positively loath! Relying on the 'bluder-on-regardless' approach > is not something I'

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-20 Thread Philip Warner
0 and be done with it. The other 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. --------

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-19 Thread Philip Warner
o parse, I'd add it in pg_dump 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. -----

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-19 Thread Philip Warner
the TABLESPACE text for %%tablespace%% in the DEFINTION. Same would apply for indexes etc. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

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

Re: [HACKERS] Using ALTER TABLESPACE in pg_dump

2004-10-18 Thread Philip Warner
then create a virtual tablespace that points to pg_default. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 8

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

2004-09-14 Thread Philip Warner
_dump will achieve almost the same result. 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. -------- Philip Warner

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] 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 0

Re: [HACKERS] open item: tablespace handing in

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

Re: [HACKERS] open item: tablespace handing in

2004-09-01 Thread Philip Warner
ing for the command to work. If it's not there by beta3, I'll just use ALTER commands. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/

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

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. -------

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] 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. -------

Re: [HACKERS] New warning in pg_dump

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

Re: [HACKERS] compile warnings in HEAD

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

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

2004-08-22 Thread Philip Warner
variable = some_ts; CREATE SCHEMA foo; to behave? Would foo have a default tablespace of some_ts? -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B

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

2004-08-22 Thread Philip Warner
d. Otherwise, I'll need to use alter commands. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@)

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

2004-08-22 Thread Philip Warner
o databases or schemas though. -------- 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-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-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
/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. |/

Re: [HACKERS] tablespace and sequences?

2004-08-20 Thread Philip Warner
best person for a quick and clean 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| _

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
tablespace? -------- 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-19 Thread Philip Warner
noone else wants to. -------- 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-19 Thread Philip Warner
in general. -------- 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
TABLE and ALTER TABLE in different commands, they will appear as such in the text file. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(

Re: [HACKERS] tablespace and sequences?

2004-08-19 Thread Philip Warner
rrors will not stop a table being created. -------- 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
er to the tablespace? -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 |

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 interactiv

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.

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] pg_dump 'die_on_errors'

2004-08-15 Thread Philip Warner
/lib/pgsql-8.0b1/lib/plpgsql', 'plpgsql_validator' LANGU... ---- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __---_ Tel: (+61) 0500 83 82 81 | ___

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 fr

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
cleanup. I can't see another way that won't require constant updates & tweaking into the future. -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ -

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
ile 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

Re: [HACKERS] Dump Version

2004-08-13 Thread Philip Warner
to present 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) | /(@) __---_

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

2004-08-12 Thread Philip Warner
be parsed. Old dump files would be treated 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|

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

2004-08-11 Thread Philip Warner
can mode on that character 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|

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] dollar-quoting in psql and in general

2004-08-11 Thread Philip Warner
s also not explicit 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? ------

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] pg_restore (libpq? parser?) bug in 8

2004-08-11 Thread Philip Warner
be vague, it's a long time since I wrote the code. -------- 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
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
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

[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] pg_dump 'die_on_errors'

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

Re: [HACKERS] pg_dump 'die_on_errors'

2004-08-11 Thread Philip Warner
om dump format was to allow for better error handling during a restore. -------- 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
kind of quotes can be ignored. Is there any circumstance where an unquoted '$' is valid? -------- Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ -

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

2004-08-11 Thread Philip Warner
pgsql; 2004-08-12 01:45:02 EST: LOG: statement: ALTER FUNCTION public.xxx() OWNER TO birds; Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \

[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: (+6

Re: [HACKERS] Does psql use nested transactions?

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

[HACKERS] pg_dump 'die_on_errors'

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

[HACKERS] Does psql use nested transactions?

2004-08-11 Thread Philip Warner
statement in a nested 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| __---

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 65

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| __---_ Alba

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

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

Re: [HACKERS] pg_dump --comment?

2004-05-28 Thread Philip Warner
ined, a better mechanism may become apparent. -------- 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] cvs: mislinked plpgsql.so ?

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

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

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

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

2004-05-03 Thread Philip Warner
backend to read pg_listeners, or it is dying while ANALYZING pg_listeners. 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? ---- Phil

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 t

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

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

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

2004-05-03 Thread Philip Warner
deed try to lock 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. ------

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

2004-05-03 Thread Philip Warner
sync.c does indeed try to lock 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. -------

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

  1   2   3   4   5   6   >