Re: [HACKERS] Permanent settings

2008-02-19 Thread Richard Huxton
setup you don't need to change many settings and they don't depend on order. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] wishlist for 8.4

2008-02-15 Thread Richard Huxton
, 'id') or even get_attribute_quoted(NEW, 'id') It would be nice to have a more dynamic language built-in. I'm not aware of any BSD-licensed dynamic languages though. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can

Re: [HACKERS] pg_dump additional options for performance

2008-02-06 Thread Richard Huxton
obj_list.txt pg_dump -L obj_list.txt mydb mydb.before.schema -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do

Re: [HACKERS] Storage Model for Partitioning

2008-01-11 Thread Richard Huxton
) and allow for stretchy partitions at the cost of an extra layer of indirection. For the single-partition case you'd not need to split the file of course, so it would end up looking much like the current arrangement. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Storage Model for Partitioning

2008-01-11 Thread Richard Huxton
Csaba Nagy wrote: On Fri, 2008-01-11 at 11:34 +, Richard Huxton wrote: 1. Make an on-disk chunk much smaller (e.g. 64MB). Each chunk is a contigous range of blocks. 2. Make a table-partition (implied or explicit constraints) map to multiple chunks. That would reduce fragmentation (you'd

Re: [HACKERS] Storage Model for Partitioning

2008-01-11 Thread Richard Huxton
Simon Riggs wrote: On Fri, 2008-01-11 at 11:34 +, Richard Huxton wrote: Is the following basically the same as option #3 (multiple RelFileNodes)? 1. Make an on-disk chunk much smaller (e.g. 64MB). Each chunk is a contigous range of blocks. 2. Make a table-partition (implied or explicit

Re: [HACKERS] Dynamic Partitioning using Segment Visibility Maps

2008-01-04 Thread Richard Huxton
of flagging rather than file-segments. That obviously complicates the tracking but means you can cope with infrequent updates as well as mark most of the most recent segment for log-style tables. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Dynamic Partitioning using Segment Visibility Maps

2008-01-04 Thread Richard Huxton
Simon Riggs wrote: On Fri, 2008-01-04 at 10:22 +, Richard Huxton wrote: Simon Riggs wrote: We would keep a dynamic visibility map at *segment* level, showing which segments have all rows as 100% visible. No freespace map data would be held at this level. Small dumb-user question. I take

Re: [HACKERS] Problem with PgTcl auditing function on trigger

2008-01-04 Thread Richard Huxton
this sort of thing. Hopefully that will help you. -- Richard Huxton Archonet Ltd -- History Tracking Trigger-Functions -- BEGIN; -- tcl_track_history(TABLE-NAME) -- Set TABLE-NAME when creating the trigger. Will automatically record change -- details in tables history/history_detail -- CREATE

[HACKERS] Should pg_dump warn on external file dependencies?

2007-12-18 Thread Richard Huxton
than a dictionary file and it seems less likely an admin (e.g. me) might fail to prepare the target accordingly. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating

[HACKERS] plpgsql debugger status - question for packagers plz

2007-11-14 Thread Richard Huxton
think the extras stuff for PG packages has been /contrib but obviously that's not a strict rule. * PS - it's a useful feature - good work to all concerned* ** PPS - 8.3 is looking good too. This short development cycle is working wonders ;-) -- Richard Huxton Archonet Ltd

Re: [HACKERS] Clarification reqeusted for select * from a huge table

2007-11-12 Thread Richard Huxton
a long time, even to quit after i pressed 'q'. With oracle SQLPlus, it is quite instantaneous. Again, you're measuring different things. What is the time to the *last* row? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 1

Re: [HACKERS] Clarification reqeusted for select * from a huge table

2007-11-12 Thread Richard Huxton
, but I do know there are ways to control this. Perhaps try the -jdbc mailing list. In any case, I think we've established it's nothing for the hackers list. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our

Re: [HACKERS] Clarification reqeusted for select * from a huge table

2007-11-12 Thread Richard Huxton
Trevor Talbot wrote: On 11/12/07, Richard Huxton [EMAIL PROTECTED] wrote: Gokulakannan Somasundaram wrote: I also noticed that it doesn't crash with psql, but it takes a long time to show the first set of records. It takes a long time, even to quit after i pressed 'q'. With oracle

Re: [HACKERS] full text search in 8.3

2007-10-11 Thread Richard Huxton
install script you can change the schema it installs to. That should make it easier to identify everything it installs. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire

Re: [HACKERS] Change request ...

2007-09-27 Thread Richard Huxton
someone who can, I'm sure people would like to see it fixed for version 8.4. Don't underestimate the work involved though. HTH -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] RETURNING and DO INSTEAD ... Intentional or not?

2007-09-12 Thread Richard Huxton
SELECT f(NEW.test1); -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] Installation problem and a question

2007-09-07 Thread Richard Huxton
the existence of a JRE. Can help here: http://pgfoundry.org/projects/pginstaller/ -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] [FEATURE REQUEST] Streaming Onlinebackup (Maybe OFFTOPIC)

2007-09-06 Thread Richard Huxton
://www.postgresql.org/docs/8.2/static/warm-standby.html Particularly section 23.4.4 That can get you to 1 second or less. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose

Re: [HACKERS] [FEATURE REQUEST] Streaming Onlinebackup (Maybe OFFTOPIC)

2007-09-06 Thread Richard Huxton
Value for WAL Files is 16 MBytes). You've either not read 23.4.4 or haven't understood it. If the text is unclear, documentation additions/changes are always welcome. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you

Re: [HACKERS] [FEATURE REQUEST] Streaming Onlinebackup (Maybe OFFTOPIC)

2007-09-06 Thread Richard Huxton
machines. You could do this just for WAL. 3. Replication. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [HACKERS] pl/pgsql function result cache

2007-09-05 Thread Richard Huxton
? Well it's unlikely to be real soon since 8.3 is currently approaching beta-test. Surely memcached+pgmemcache does basically this anyway, except: - it's not restricted to function outputs - you can cache application objects - you can spread your cache across multiple machines -- Richard

Re: [HACKERS] Has anyone tried out the PL/pgSQL debugger?

2007-09-04 Thread Richard Huxton
the overheads low enough without interfering with plpgsql itself? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] Has anyone tried out the PL/pgSQL debugger?

2007-09-04 Thread Richard Huxton
of logging things permanently, just for debugging purposes. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] Has anyone tried out the PL/pgSQL debugger?

2007-09-04 Thread Richard Huxton
. Perhaps I'm optimising prematurely though. I'll have to run some timing tests... -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [HACKERS] Segmentation fault using digest from pg_crypto

2007-08-24 Thread Richard Huxton
? That should automatically return null if a parameter is null without calling the function. Simplest way to check is probably to pg_dump --schema-only and search for the function defn. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Regarding Distributed Database features

2007-07-13 Thread Richard Huxton
. - Database independence In particular, this one makes no sense to me. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] [GENERAL] Count(*) throws error

2007-07-12 Thread Richard Huxton
that doesn't seem much better. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] GRANT ROLE and triggers

2007-07-05 Thread Richard Huxton
. This question is better suited to the general / sql / admin lists perhaps. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [HACKERS] Proposal: In-Place upgrade concept

2007-07-03 Thread Richard Huxton
versions). Or are these examples of changes that will only be allowed e.g. every other major version. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs

Re: [HACKERS] Worries about delayed-commit semantics

2007-06-22 Thread Richard Huxton
like that. Any other takers? I like synchronous_commit = off, it even has a little girlfriend getting spin while being accurate :) Or perhaps sync_on_commit = off? Less girlfriend-speak perhaps:no_sync_on_commit = on -- Richard Huxton Archonet Ltd ---(end

Re: [HACKERS] Worries about delayed-commit semantics

2007-06-22 Thread Richard Huxton
?)* It's obvious to people on the -hackers list what we're talking about, but is it so clear to a newbie, perhaps non-English speaker? * I can see people thinking this means something like commit_delay. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] libpq and Binary Data Formats

2007-06-05 Thread Richard Huxton
to get anywhere. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] libpq and Binary Data Formats

2007-06-04 Thread Richard Huxton
for binary data types in libpq. Um - speaking as a user, not a developer, I don't actually see a description of what problem(s) you are suggesting be solved. Are you saying there should be better documentation, or a new format? -- Richard Huxton Archonet Ltd ---(end

Re: [HACKERS] timestamp datatyp problem

2007-05-31 Thread Richard Huxton
and not 64-bit integers? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] exit

2007-05-29 Thread Richard Huxton
Marcos Fabrício Corso wrote: I would like to leave the list ... Not really a question worth posting several lists. If you don't know how to unsubscribe, try starting with the form linked from here. http://www.postgresql.org/community/lists/ -- Richard Huxton Archonet Ltd

Re: [HACKERS] [GSOC] - I ntegrity check algorithm for data files

2007-05-23 Thread Richard Huxton
( pg_cancel_backend() ). For the rest, that's what ssh is for imho. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] [GSOC] - I ntegrity check algorithm for data files

2007-05-23 Thread Richard Huxton
Zdenek Kotala wrote: Richard Huxton wrote: For the rest, that's what ssh is for imho. And what you will do when you don't have ssh access on this machine and 5432 is only one way how to administrate a server? (Windows is another story.) If I've not got ssh access to the machine, then I'm

Do we need a TODO? (was Re: [HACKERS] Concurrently updating an updatable view)

2007-05-22 Thread Richard Huxton
-referential updates Hiroshi originally noted the problem in one of his views here: http://archives.postgresql.org/pgsql-hackers/2007-05/msg00507.php -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0

Re: [HACKERS] Role members

2007-05-21 Thread Richard Huxton
the inherits flag. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] Role members

2007-05-21 Thread Richard Huxton
of role X rather than list all the roles that are members of X. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] Not ready for 8.3

2007-05-16 Thread Richard Huxton
looked at it in detail it seems to pretty much do what it claims to. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] Not ready for 8.3

2007-05-16 Thread Richard Huxton
Dave Page wrote: Richard Huxton wrote: Magnus Hagander wrote: It's been on my list to rewrite the whole archive system for a while for various reasons. There is quite a bit of crossover with the patch tracker I proposed so I was hoping to look at both together. Let me know when you start

Re: [HACKERS] Concurrently updating an updatable view

2007-05-15 Thread Richard Huxton
suspicious if UPDATABLE VIEWS can be implemented using the rule system. Remember this affects all self-referential joins on an UPDATE (and DELETE?) not just views. It's just that a rule is more likely to produce that type of query. -- Richard Huxton Archonet Ltd

Re: [HACKERS] Concurrently updating an updatable view

2007-05-14 Thread Richard Huxton
. I'm trying to decide if it's unexpected or just plain wrong, and I think I'd have to argue wrong. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs

Re: [HACKERS] Concurrently updating an updatable view

2007-05-14 Thread Richard Huxton
Richard Huxton wrote: Heikki Linnakangas wrote: The problem is that the new tuple version is checked only against the condition in the update rule, id=OLD.id, but not the condition in the original update-claus, dt='a'. Yeah, that's confusing :(. Bit more than just normal rule confusion I'd

Re: [HACKERS] Concurrently updating an updatable view

2007-05-14 Thread Richard Huxton
Hiroshi Inoue wrote: Richard Huxton wrote: Heikki Linnakangas wrote: The problem is that the new tuple version is checked only against the condition in the update rule, id=OLD.id, but not the condition in the original update-claus, dt='a'. Yeah, that's confusing :(. Bit more than just

Re: [HACKERS] Behavior of GENERATED columns per SQL2003

2007-05-11 Thread Richard Huxton
that would be useful too. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [HACKERS] Getting parse Error at or near character and

2007-05-02 Thread Richard Huxton
friend 4ever wrote: Hi, I am getting the parse error while i try to execute a simple sql query in postgres. This isn't a question for the hackers list. Try the general, or jdbc lists. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Getting parse Error at or near character and

2007-05-02 Thread Richard Huxton
to find out what the error is would be to provide the *actual* query, not something very much like it. Perhaps turn statement logging on in your postgresql.conf if it isn't already. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7

Re: [HACKERS] Can't ri_KeysEqual() consider two nulls as equal?

2007-04-18 Thread Richard Huxton
than equal. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [PATCHES] [HACKERS] Full page writes improvement, code update

2007-03-30 Thread Richard Huxton
page? Assuming it's being written to as the backup is in progress. (We are talking about when disk blocks are smaller than PG blocks here, so can't guarantee an atomic write for a PG block?) -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [PATCHES] [HACKERS] Full page writes improvement, code update

2007-03-30 Thread Richard Huxton
Simon Riggs wrote: On Fri, 2007-03-30 at 11:27 +0100, Richard Huxton wrote: Is that always true? Could the backup not pick up a partially-written page? Assuming it's being written to as the backup is in progress. (We are talking about when disk blocks are smaller than PG blocks here, so

Re: [HACKERS] Group Commit

2007-03-27 Thread Richard Huxton
to commit. I don't know how simple it is to measure/estimate the time spent for # of transactions that finish while an fsync is taking place. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please

Re: [HACKERS] Stats for multi-column indexes

2007-03-20 Thread Richard Huxton
everyone can agree on. Being able to say that values in different columns are related just gives the planner more information to work with. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] modifying the tbale function

2007-03-19 Thread Richard Huxton
-like function): To support this I think we'd need to do something like: create function mygs(int, int) returns setof int language plperl with srfstate as $$ ... $$; Is this not what we do with aggregate functions at present? -- Richard Huxton Archonet Ltd

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-14 Thread Richard Huxton
is that for high temperature I need a temperature value, whereas for tooth decay I'll want a tooth number (or whatever they use). Which brings us back to where we started... -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-13 Thread Richard Huxton
=no then don't bother to ask type of car=?. Edward - if you want to see a schema that implements this sort of thing, contact me off list and I'll see what I can do. The client for that project will probably be fine with sharing it with one student. -- Richard Huxton Archonet Ltd

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-13 Thread Richard Huxton
David Fetter wrote: On Tue, Mar 13, 2007 at 09:31:45AM +, Richard Huxton wrote: * Another good example is the questionnaire. With all due respect, this is a solved problem *without EAV or run-time DDL*. The URL below has one excellent approach to this. http://www.varlena.com/GeneralBits

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-13 Thread Richard Huxton
David Fetter wrote: On Tue, Mar 13, 2007 at 02:21:37PM +, Richard Huxton wrote: David Fetter wrote: On Tue, Mar 13, 2007 at 09:31:45AM +, Richard Huxton wrote: * Another good example is the questionnaire. With all due respect, this is a solved problem *without EAV or run-time DDL

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-12 Thread Richard Huxton
, but why not? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-12 Thread Richard Huxton
Andrew Hammond wrote: On 3/12/07, Richard Huxton dev@archonet.com wrote: Josh Berkus wrote: I really don't see any way you could implement UDFs other than EAV that wouldn't be immensely awkward, or result in executing DDL at runtime. What's so horrible about DDL at runtime? Obviously, you're

Re: [HACKERS] My honours project - databases using dynamically attached entity-properties

2007-03-12 Thread Richard Huxton
Gregory Stark wrote: Richard Huxton dev@archonet.com writes: Well the cost depends on where/how complex the extra fields are. If you're just talking about adding columns usercol01..NN with different types and possibly a lookup to a single client_attributes table, it's not difficult

Re: [HACKERS]

2007-03-08 Thread Richard Huxton
-admin lists. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] COMMIT NOWAIT Performance Option

2007-02-26 Thread Richard Huxton
of that? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] Database backup mechanism

2007-02-09 Thread Richard Huxton
you see a static version. You could rsync that against an older file-level copy as the base copy in a PITR backup. Note - even with a snapshot facility you need to use PITR or stop the database to get a guaranteed working copy. -- Richard Huxton Archonet Ltd

Re: [HACKERS] Referential Integrity and SHARE locks

2007-02-06 Thread Richard Huxton
was there before an update, it would be there after too. The only thing you'd need to prevent would be deletes. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating

Re: [HACKERS] Pl/pgsql functions causing crashes in 8.2.2

2007-02-06 Thread Richard Huxton
but only shows up in a function's context. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Function proposal to find the type of a datum

2007-02-02 Thread Richard Huxton
) that would at least let you check against a pre-determined list of types. The only way I know of at present is to trap an exception if it fails. I think you're going to have to store your arguments with their types. -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Referential Integrity and SHARE locks

2007-02-02 Thread Richard Huxton
. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] Modifying and solidifying contrib

2007-01-29 Thread Richard Huxton
at the package level and the bootstrapping for installation. Bootstrapping could consist of nothing more than a set of SQL scripts which set up some temporary tables and create and call the _install() function. Any of this in the direction that other people were thinking of? -- Richard

Re: [HACKERS] Modifying and solidifying contrib

2007-01-29 Thread Richard Huxton
Tom Lane wrote: Richard Huxton dev@archonet.com writes: 1. Add a new column for all system objects, separate from schema: package. Wouldn't it be a whole lot easier just to drive it off schema, rather than inventing duplicative parallel infrastructure? That is, say that a package has one

Re: [HACKERS] [GENERAL] Autovacuum Improvements

2007-01-22 Thread Richard Huxton
in a meaningful manner. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] Temparary disable constraint

2007-01-18 Thread Richard Huxton
if view V doesn't mention column C then dropping C has no effect on it. That's a lot more dependencies to track of course. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http

Re: [HACKERS] [PERFORM] unusual performance for vac following 8.2upgrade

2007-01-12 Thread Richard Huxton
on user-defined types, functions, etc? Is there not some gain from just a standard partitioning of pg_class into: (system-objects, user-objects, temp-objects)? I'd expect them to form a hierarchy of change+vacuum rates (if you see what I mean). -- Richard Huxton Archonet Ltd

Re: [HACKERS] PANIC: block 463 unfound during REDO after out of

2007-01-10 Thread Richard Huxton
is to make your on-disk backups and set it up as though it's PITR recovery you're doing. That way you can stop the recovery before block 463 causes the failure. Oh, assuming you've got the space you need on your partition of course. HTH -- Richard Huxton Archonet Ltd

Re: [HACKERS] Tuning single row operations

2006-12-21 Thread Richard Huxton
against a basically static table could you get away with just checking the index and not the table? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs

Re: [HACKERS] Interface for pg_autovacuum

2006-12-21 Thread Richard Huxton
compound) identifier. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: column ordering, was Re: [HACKERS] [PATCHES] Enums patch v2

2006-12-20 Thread Richard Huxton
of the lists). In particular, that would let you have FK constraints with a constant as part of the key. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Understanding oid for a record

2006-12-18 Thread Richard Huxton
. Perhaps the general or sql lists instead? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] EXPLAIN ANALYZE

2006-12-11 Thread Richard Huxton
the threshold is exceeded, one when the node completes. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [HACKERS] ALTER TABLE RENAME column

2006-11-17 Thread Richard Huxton
Peter Eisentraut wrote: Jim Nasby wrote: Any reason not to support renaming columns? Can this be added to TODO? Upgrade to Postgres95. Hey, is Jim running MySQL 5? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9

[HACKERS] Dumb user question re: updates, Toast, HOT

2006-11-11 Thread Richard Huxton
or are they shared? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Found a bug

2006-11-07 Thread Richard Huxton
relname = 't'; relhasindex - t (1 row) richardh=# rollback; ROLLBACK richardh=# select relhasindex from pg_class where relname = 't'; relhasindex - f PostgreSQL 8.1.3 on i586-pc-linux-gnu -- Richard Huxton Archonet Ltd ---(end of broadcast

[HACKERS] View updating and nextval() workaround - will this ever break?

2006-10-31 Thread Richard Huxton
Basically, I'm wondering if anyone can see a problem with my standard workaround to the macro-expansion-vs-nextval problem with view. I can't see how PG changes might break it, but I might be using it in a presentation to others so thought I'd best check. BEGIN; CREATE TABLE foo (f_id

Re: [HACKERS] View updating and nextval() workaround - will this

2006-10-31 Thread Richard Huxton
Tom Lane wrote: Richard Huxton dev@archonet.com writes: Basically, I'm wondering if anyone can see a problem with my standard workaround to the macro-expansion-vs-nextval problem with view. CREATE FUNCTION foobar_ins_fn(p_f1 int4, p_b1 int4) RETURNS void AS $$ BEGIN INSERT INTO foo (f_id

Re: [HACKERS] pg_dump exclusion switches and functions/types

2006-10-06 Thread Richard Huxton
switches appeared. Is that OK? Is there a reason why pg_dump can't do the --list/--use-list flags like pg_restore, or is it just a matter of round tuits? -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our

Re: [HACKERS] proposal for PL packages for 8.3.

2006-08-09 Thread Richard Huxton
functions - start-session/end-session functions - dependencies (is pg_depend enough) pg_package_items - schema-name - variables, functions, tables, views etc -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 3: Have you checked our

Re: [HACKERS] proposal for PL packages for 8.3.

2006-08-09 Thread Richard Huxton
Martijn van Oosterhout wrote: On Wed, Aug 09, 2006 at 08:38:22AM +0100, Richard Huxton wrote: Namespaces Given that we already have search_path it makes sense to use it. So, we could have something like: 1. A PRIVATE modifier for objects that mean they are only accessible if their schema

Re: [HACKERS] proposal for PL packages for 8.3.

2006-08-09 Thread Richard Huxton
Richard Huxton wrote: Packaging I'd guess we'd need a pg_package and pg_package_items system tables. We could track: - package name (different from schema) - version number - install/uninstall functions - start-session/end-session functions - dependencies (is pg_depend enough

Re: [HACKERS] An Idea for planner hints

2006-08-08 Thread Richard Huxton
as with indexes: CREATE STATISTIC ...defn here... ON invoices (cli_id), clients (id) WHERE invoices.paid = false WITH PRIORITY 100; (I'm thinking the priority so you can delete any rules with a low priority while keeping ones you think are vital) -- Richard Huxton Archonet Ltd

Re: [HACKERS] proposal for PL packages for 8.3.

2006-08-07 Thread Richard Huxton
Pavel Stehule wrote: Package is similar to schema. Are you saying that the package would effectively *be* a schema from the outside. That is, if I have package foo then I can't also have a schema foo? -- Richard Huxton Archonet Ltd ---(end of broadcast

Re: [HACKERS] Performance Issues

2006-05-23 Thread Richard Huxton
be cached. You might want to look at memcached for this sort of thing. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] Get explain output of postgresql in Tables

2006-04-12 Thread Richard Huxton
Jim C. Nasby wrote: On Mon, Apr 10, 2006 at 10:44:15AM +0100, Richard Huxton wrote: Bruce Momjian wrote: * Allow EXPLAIN output to be more easily processed by scripts Can I request an extension/additional point? * Design EXPLAIN output to survive cut paste on mailing-lists Being

Re: [HACKERS] Get explain output of postgresql in Tables

2006-04-12 Thread Richard Huxton
, but this would at least remove the hazard from stuff that thinks whitespace isn't significant. That's the sort of thing I was thinking of, or even something like: 1 Nested Loop ... 1.1 Join Filter... 1.1.1 HashAggregate... 1.2 etc -- Richard Huxton Archonet Ltd ---(end

Re: [HACKERS] plpgsql by default

2006-04-11 Thread Richard Huxton
this is not the case, or refute any that you care to provide. You can write trigger functions in plpgsql. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 4: Have you searched our list archives? http

Re: [HACKERS] Get explain output of postgresql in Tables

2006-04-10 Thread Richard Huxton
useful on the lists. Sometimes it takes me longer to reformat the explain than it does to understand the problem. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

Re: [HACKERS] [PERFORM] Hanging queries on dual CPU windows

2006-03-15 Thread Richard Huxton
] Random hang during commit / [EMAIL PROTECTED]) that might well be related to this. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your

Re: [HACKERS] Updateable views was:(Re: [HACKERS] Proposal for SYNONYMS)

2006-03-10 Thread Richard Huxton
-updatable views in 8.2 - even if it was only for the simplest of cases. If I can be of any help testing etc. let me know. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 6: explain analyze is your friend

[HACKERS] Any conclusion on the Xeon context-switching issue?

2006-02-27 Thread Richard Huxton
Subject says it all really. I've got a new client who seems to be suffering from it, and I'm not sure if any conclusion was reached. -- Richard Huxton Archonet Ltd ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore

<    1   2   3   4   >