Re: [HACKERS] Bug: Unreferenced temp tables disables vacuum to update xid

2008-01-07 Thread Andrew - Supernews
13869'::regclass; > > oid | pg_temp_24.tmp_isp_blk_chk The regular table had not shown up on a query of age(relfrozenxid) WHERE relkind='r' but the toast table showed up on a similar query with WHERE relkind='t'. -- Andrew, Supernews http://www.supernews.co

Re: [HACKERS] like/ilike improvements

2007-05-22 Thread Andrew - Supernews
design) true in UTF8, but is not true of most other multibyte charsets. The %_ case is also trivially handled in UTF8 by simply ensuring that _ doesn't match a non-initial octet. This allows % to advance by bytes without danger of losing sync. -- Andrew, Supernews http://www.supernews

Re: [HACKERS] What is happening on buildfarm member baiji?

2007-05-14 Thread Andrew - Supernews
on whether it will be followed by listen() or connect(); this was not well understood by the original designers of the API, hence the use of SO_REUSEADDR as a klugy way of saying "I'm going to use listen() on this socket after the bind".) -- Andrew, Supernews http://www.supernews.com

Re: [HACKERS] Anyone interested in improving postgresql scaling?

2007-04-10 Thread Andrew - Supernews
his is a problem in FreeBSD, not specifically to do with postgres - the granularity for SysV semaphore wakeups in FreeBSD-6.x and earlier is the entire semaphore set, not just one specific semaphore within the set. I explained that to Kris some weeks ago, and someone (mux) did a patch (to FreeBSD,

Re: [HACKERS] Bug in UTF8-Validation Code?

2007-04-04 Thread Andrew - Supernews
On 2007-04-05, Tatsuo Ishii <[EMAIL PROTECTED]> wrote: >> Andrew - Supernews <[EMAIL PROTECTED]> writes: >> > Thinking about this made me realize that there's another, ahem, elephant >> > in the room here: convert(). >> > By definition convert

Re: [HACKERS] Bug in UTF8-Validation Code?

2007-04-04 Thread Andrew - Supernews
; point, converted to the local client_encoding per conversion_procs. Thinking about this made me realize that there's another, ahem, elephant in the room here: convert(). By definition convert() returns text strings which are not valid in the server encoding. How can this be addressed?

Re: [HACKERS] Bug in UTF8-Validation Code?

2007-04-03 Thread Andrew - Supernews
sequences of _bytes_ that represent that code point in various encodings, of which the three-byte sequence 0xE2 0x82 0xAC is the one used in UTF-8. Functions like chr() and ascii() should be dealing with the _number_ of the code point, not with its representation in transfer encodings. -- A

Re: [HACKERS] Bug in UTF8-Validation Code?

2007-04-02 Thread Andrew - Supernews
n setting to use. Treating the parameter as bytes is wrong too - it should correspond to whatever the natural character numbering for the encoding is; for utf8 that is the Unicode code point. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services -

Re: [HACKERS] Bug in UTF8-Validation Code?

2007-04-01 Thread Andrew - Supernews
these functions in this regard? The chr() function returns an octet, rather than a character; this is clearly wrong and needs fixing. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- T

Re: [HACKERS] Arrays of Complex Types

2007-03-27 Thread Andrew - Supernews
_create_with_catalog in backend/catalog/heap.c. You've still got the usage of the relation OID and the relation _type_ OID reversed. The array element type that you pass to TypeCreate must be the _type_ OID. -- Andrew, Supernews http://www.supernews.com - individual

Re: [HACKERS] LIKE optimization in UTF-8 and locale-C

2007-03-22 Thread Andrew - Supernews
goal_ of UTF8. Treating UTF8 like any other multibyte charset and converting everything to wide-chars is, in my opinion, always going to result in suboptimal performance. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of

Re: [HACKERS] LIKE optimization in UTF-8 and locale-C

2007-03-22 Thread Andrew - Supernews
wo two-octet characters AB, the second octet of A plus the first octet of B is not a valid UTF8 character (and likewise for longer characters). (And while I haven't tested it, it looks like the patch posted doesn't account properly for the use of _, so it needs a bit more work.)

Re: [HACKERS] GIST and TOAST

2007-03-06 Thread Andrew - Supernews
hat came from a tuple, but from data that came from a decompress method. It's expected that the decompress method does the detoasting. So I think you've mis-analyzed the problem. That's especially true since you are claiming that the existing code is already buggy when in fact

Re: [HACKERS] ERROR: operator does not exist: integer !=- integer

2007-03-04 Thread Andrew - Supernews
On 2007-03-04, William ZHANG <[EMAIL PROTECTED]> wrote: > Here is the steps to reproduce it in CVS HEAD: > backend> select -1 !=-1; This arguably isn't a bug, because != is not a standard SQL operator, and therefore !=- can legitimately be defined as a single operator by t

Re: [HACKERS] GIST and TOAST

2007-03-02 Thread Andrew - Supernews
On 2007-03-02, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2007-03-02, Gregory Stark <[EMAIL PROTECTED]> wrote: >>> I think these are actual bugs. If you happened to provide a large enough >>> datum >>

Re: [HACKERS] GIST and TOAST

2007-03-02 Thread Andrew - Supernews
nto account the fact that, at least prior to your patch, values in index tuples could never be toasted? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] inet/cidr

2006-12-21 Thread Andrew - Supernews
reason I've not done another release yet is because I haven't had a chance to test for regressions on 8.1. -- Andrew, Supernews http://www.supernews.com ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [HACKERS] recovery.conf parsing problems

2006-12-13 Thread Andrew - Supernews
On 2006-12-13, "Simon Riggs" <[EMAIL PROTECTED]> wrote: > On Wed, 2006-12-13 at 19:28 +, Simon Riggs wrote: >> On Wed, 2006-12-13 at 04:23 +, Andrew - Supernews wrote: >> > While testing a PITR recovery, I discovered that recovery.conf doesn't >>

Re: [HACKERS] Better management of mergejoinable operators

2006-12-12 Thread Andrew - Supernews
On 2006-12-13, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2006-12-13, Tom Lane <[EMAIL PROTECTED]> wrote: >>> BTW, I think it's possible to prove that there need never be two for the >>> case of both

Re: [HACKERS] Better management of mergejoinable operators

2006-12-12 Thread Andrew - Supernews
ique join operator due to trichotomy, but this is not true for the sortops. While the above is a bit contrived, I think non-contrived examples could be found too. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)-

[HACKERS] recovery.conf parsing problems

2006-12-12 Thread Andrew - Supernews
allows \' (e.g. archive_command = '/path/to/script \'%f\' \'%p\''). Should this be fixed? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 3: Have y

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

2006-11-11 Thread Andrew - Supernews
tus" column on a row, do I have two copies of "big_text" TOASTED > or are they shared? Shared. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] Fwd: Is the fsync() fake on FreeBSD6.1?

2006-09-23 Thread Andrew - Supernews
On 2006-09-23, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> Whether the underlying device lies about the write completion is another >> matter. All current SCSI disks have WCE enabled by default, which means >> that they w

Re: [HACKERS] Fwd: Is the fsync() fake on FreeBSD6.1?

2006-09-22 Thread Andrew - Supernews
FreeBSD, this command will disable WCE permanently on a SCSI drive: echo 'WCE: 0' | camcontrol modepage daXX -m 8 -P3 -e (use -P0 to disable it only temporarily, or you can use just the second of those commands alone to interactively edit the mode page) -- Andrew, Supernews http

Re: [HACKERS] [PATCHES] Patch for UUID datatype (beta)

2006-09-19 Thread Andrew - Supernews
can never know) that no-one else is using the same MAC address. Anyone with substantial experience in networking will tell you that the supposed "uniqueness" of manufacturer-assigned MACs is often a myth, with (in extreme cases) entire batches of NICs being manufactured with the same

Re: [HACKERS] 8.2 beta blockers

2006-09-17 Thread Andrew - Supernews
On 2006-09-18, James William Pye <[EMAIL PROTECTED]> wrote: > FWIW, I'm +1 on the cleaner design you suggested. While I understand the > concerns of adding features/API this late; Adding features is one thing, breaking existing users of the code is another. -- Andre

Re: [HACKERS] Timezone List

2006-09-17 Thread Andrew - Supernews
it just doesn't list aliases (which it isn't supposed to). The reason to include zone.tab in with the data (unlike the current setup which doesn't bother to even install the file anywhere) is to provide an answer to the question "what timezone(s) are applicable to a specific cou

Re: [HACKERS] New version of money type

2006-09-15 Thread Andrew - Supernews
On 2006-09-15, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > Andrew - Supernews wrote: >> Numbers from an actual benchmark: >> >> int4out(0) - 0.42us/call >> numeric_out(0) - 0.32us/call >> >> int4out(10) - 0.67us/call >> numer

Re: [HACKERS] New version of money type

2006-09-15 Thread Andrew - Supernews
enerate_series(1,1000) s2; This calls int4out(0) a million times. (the input function is only called once since it is a constant, and therefore handled during planning) select 0::numeric from generate_series(1,1000) s1, generate_series(1,1000) s2; This calls numeric_out(0) a

Re: [HACKERS] New version of money type

2006-09-15 Thread Andrew - Supernews
On 2006-09-15, "D'Arcy J.M. Cain" wrote: > On Fri, 15 Sep 2006 10:17:55 - > Andrew - Supernews <[EMAIL PROTECTED]> wrote: >> Presumably the same speed as bigint, which is to say that while it is >> faster than numeric for calculation, it is (much) slow

Re: [HACKERS] [ADMIN] Vacuum error on database postgres

2006-09-15 Thread Andrew - Supernews
bad query plans for later commands in the transaction. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscri

Re: [HACKERS] New version of money type

2006-09-15 Thread Andrew - Supernews
ric output is measured in multiples, not in percentages.) -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose

Re: [HACKERS] Fixed length data types issue

2006-09-08 Thread Andrew - Supernews
ys. You're confusing locale and charset. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] Fixed length data types issue

2006-09-07 Thread Andrew - Supernews
fact > there's no need for it to take more than 87 bytes. Are you sure? Perhaps you are assuming that a char(1) field can be made to be fixed-length; this is not the case (consider utf-8 for example). -- Andrew, Supernews http://www.supernews.com - individual a

Re: [HACKERS] Timezone List

2006-09-06 Thread Andrew - Supernews
ink the existing view > is wrongly named --- perhaps it should be pg_timezoneabbrevs? Or > more readably, perhaps pg_timezone_abbrevs, with pg_timezone_names for > the other view. Yes, the abbreviations table is definitely misnamed. -- Andrew, Supernews http://www.supernews.com - individual

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-05 Thread Andrew - Supernews
nal discussion (which was a year and a half or so ago). However, others seemed to disagree, which is why we now have a replacement version. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-05 Thread Andrew - Supernews
meone will do the legwork to define and implement them. So you're prepared to violate the feature freeze to stick in a new API that nobody currently wants to _use_, while forcing existing users to resort to pgfoundry for a module that's been around for several major releases? -- Andr

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-05 Thread Andrew - Supernews
On 2006-09-05, "Merlin Moncure" <[EMAIL PROTECTED]> wrote: > On 9/5/06, Andrew - Supernews <[EMAIL PROTECTED]> wrote: >> On 2006-09-05, Josh Berkus wrote: >> > The current code is GPL. It *has* to be removed. >> >> Which is why Abhijit'

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-05 Thread Andrew - Supernews
On 2006-09-05, Josh Berkus wrote: > The current code is GPL. It *has* to be removed. Which is why Abhijit's version exists - it's intended to be a drop-in, BSD-licensed replacement for the current code. -- Andrew, Supernews http://www.supernews.com - individual and corporate

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-05 Thread Andrew - Supernews
mode as a magic number isn't ideal. > And then there's the question of what to expose in the way of lock > identifier options. What we've got now is "two int4's or an OID" > which seems a bit random, not to mention that the key space overlaps > in an u

Re: [HACKERS] Ding-dong, contrib is dead ...

2006-09-04 Thread Andrew - Supernews
ps he would be prepared to turn that into a patch against the core... -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desi

[HACKERS] FE/BE protocol vs. parameterized queries

2006-09-04 Thread Andrew - Supernews
uce a plan that was equivalent to that of a non-parameterized query. This would hopefully remove all cases where it is currently necessary to use PQexec rather than PQexecParams, such as where parameterized limits, immutable functions of parameters, partial indexes etc. are involved. -- Andrew,

Re: [HACKERS] @ versus ~, redux

2006-09-04 Thread Andrew - Supernews
< y "x is strictly contained in y" (obviously these don't all necessarily make sense for all types) These have the advantage of resembling set notation more closely and being in use in one existing core type. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Prepared statements considered harmful

2006-08-31 Thread Andrew - Supernews
those are the only two places where preparation is the default RI triggers. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an

Re: [HACKERS] [BUGS] numerics lose scale and precision in views of unions

2006-08-09 Thread Andrew - Supernews
easonably as the scale is > different. The comparison function must be trichotomous, that is the possible results are "equal", "greater", and "less". There is no other "not equal" result. -- Andrew, Supernews http://www.supernews.com - individual and corpor

Re: [HACKERS] plpgsql by default

2006-04-11 Thread Andrew - Supernews
le, when the executor already has that functionality built in?). Here's your brute-force password crack (try it! should only take an hour or two) using the simple alpha(n) function example from my other post: select a||b||c from alpha(3) s1(a), alpha(3) s2(b), alpha(2) s3(c) where md5(

Re: [HACKERS] plpgsql by default

2006-04-11 Thread Andrew - Supernews
t noticed before he's succeeded. > (And certainly, doing anything compute-intensive via recursive SQL > functions is not the way to go unnoticed.) Doing something compute-intensive with pl/pgsql functions will be just as noticable. -- Andrew, Supernews htt

Re: [HACKERS] plpgsql by default

2006-04-11 Thread Andrew - Supernews
On 2006-04-11, Richard Huxton wrote: > Andrew - Supernews wrote: >> On 2006-04-11, Tom Lane <[EMAIL PROTECTED]> wrote: >>> I don't feel a need to offer specific examples as requested by Andrew. >> >> Why not? You're basing your entire argumen

Re: [HACKERS] plpgsql by default

2006-04-10 Thread Andrew - Supernews
y certainty. pl/pgsql is not comparable to other PLs in this case. Specifically, it does not provide access to any functionality that is not already part of Postgres itself. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] plpgsql by default (was: Re: Remote administration contrib module)

2006-04-10 Thread Andrew - Supernews
On 2006-04-11, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2006-04-10, Bruce Momjian wrote: >>>> [ security ] >>> It actually is the reason I have heard. > >> And it was duly debunked. > > Th

[HACKERS] plpgsql by default (was: Re: Remote administration contrib module)

2006-04-10 Thread Andrew - Supernews
> > It actually is the reason I have heard. And it was duly debunked. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [HACKERS] ACCESS EXCLUSIVE LOCK

2006-03-02 Thread Andrew - Supernews
mit; that means that it can't allow concurrent access to the table since it is going to delete old tuples that might otherwise still be visible to other transactions. DELETE on the other hand simply marks the old tuples as dead; remember to vacuum as needed to clean up.) -- Andrew, Supernews h

Re: [HACKERS] ACCESS EXCLUSIVE LOCK

2006-03-02 Thread Andrew - Supernews
> held throughout the entire SP, not just during the execution of the > TRUNCATE command. Shouldn't TRUNCATE be releasing the lock as soon as > it finishes? No, locks are always held until the end of the transaction. -- Andrew, Supernews http://www.supernews.com - ind

Re: [HACKERS] ACCESS EXCLUSIVE LOCK

2006-03-02 Thread Andrew - Supernews
On 2006-03-02, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > No. Here is the offending SP: > > CREATE OR REPLACE FUNCTION update_my_cache() RETURNS void AS ' > BEGIN > > TRUNCATE TABLE my_cache_table; TRUNCATE is another command that takes an access exclusive lock

Re: [HACKERS] bug in PG_VERSION_NUM patch

2006-02-28 Thread Andrew - Supernews
of one or more s. b. Otherwise, if FS is any other character c, fields shall be delimited by each single occurrence of c. 3. Otherwise, the string value of FS shall be considered to be an extended regular expression. Each occurrence of a sequence matching the ext

Re: [HACKERS] constraints and sql92 information_schema compliance

2006-02-27 Thread Andrew - Supernews
ybe?) where they'd pose less risk of conflicts with user-defined names. > Does newsysviews already do this? The current version in pgfoundry CVS uses "pg_sysviews" as the schema name. If you have any better suggestions for the name, or any other aspect of the projec

Re: [HACKERS] possible design bug with PQescapeString()

2006-02-26 Thread Andrew - Supernews
ght in such cases (which I would strongly favour), it is likely that there will always be ways to get malformed sequences into the backend (which itself is far too lax about parsing them). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---

Re: [HACKERS] possible design bug with PQescapeString()

2006-02-20 Thread Andrew - Supernews
On 2006-02-20, Tatsuo Ishii <[EMAIL PROTECTED]> wrote: > In further investigation, Akio Ishida found this kind of attack is > possible even with EUC_JP/UTF-8. How? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services --

Re: [HACKERS] slow information schema with thausand users, seq.scan pg_authid

2006-02-06 Thread Andrew - Supernews
here you'd expect. This seems to be something to do with the fact that it's not pg_authid which is being accessed, but rather the view pg_roles. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)---

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-25 Thread Andrew - Supernews
ower input set than that accepted by inet_aton(). The spec is quite explicit that inet_pton is not expected to accept the abbreviated forms or any non-decimal values. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of br

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-25 Thread Andrew - Supernews
due to the need to support ipv6. If you want that for ip4-only apps, that's why pgfoundry.org/projects/ip4r exists. It is possible that ip4r will be extended to ipv6 addresses, but most unlikely that it will ever implement the overloaded "inet" semantics. -- Andrew, Supernews

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-25 Thread Andrew - Supernews
but > what other default netmask would you suggest anyways? The one implied by the number of octets specified, assuming you are going to accept the abbreviated forms at all. (FWIW, ip4r at this time does not even accept '10.1/16', it insists on '10.1.0.0/16'.)

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-25 Thread Andrew - Supernews
On 2006-01-25, Bruce Momjian wrote: > Andrew - Supernews wrote: >> Having the behaviour be dependent on which part of the IP space is used >> is a total nonsense on the modern, CIDR, internet! The C in CIDR even >> stands for "Classless", so how can you ever ju

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-25 Thread Andrew - Supernews
f the IP space is used is a total nonsense on the modern, CIDR, internet! The C in CIDR even stands for "Classless", so how can you ever justify introducing _new_, non-traditional, dependencies on the traditional classes? -- Andrew, Supernews http://www.supernews.com - individual and c

Re: [HACKERS] Cleaning up the INET/CIDR mess

2006-01-24 Thread Andrew - Supernews
t like the relation > between varchar and text. For instance, varchar doesn't have any > comparison operators of its own, but piggybacks on text's comparison > operators, relying on the implicit cast from varchar to text to make this > transparent to users. Well, inet/cidr h

[HACKERS] Bug: random() can return 1.0

2006-01-19 Thread Andrew - Supernews
in questions asked on the IRC channel), and the problem can't be worked around at the application level without knowing the value of MAX_RANDOM_VALUE in order to correct the range to [0.0,1.0). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP ser

Re: [HACKERS] Removing SORTFUNC_LT/REVLT

2006-01-01 Thread Andrew - Supernews
it must be a strict weak ordering for sorting to even work, and such an ordering is completely determined by either one of its greater-than/less-than operators? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast

Re: [HACKERS] Removing SORTFUNC_LT/REVLT

2005-12-31 Thread Andrew - Supernews
olumn sort of the following data: ('Foo',1) ('foo',2) ('Foo',3) would produce the wrong output, no? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] order by, for custom types

2005-11-19 Thread Andrew - Supernews
table < operator, i.e. one that constitutes a strict weak ordering over the elements to be sorted; it can rely on the fact that NOT(a < b) AND NOT(b < a) implies that a and b are equivalent for sorting purposes. (The requirement that < constitute a strict weak ordering is enough to ensur

Re: [HACKERS] PG_DUMP and table locking in PG7.4

2005-11-15 Thread Andrew - Supernews
that a share lock is requested(and hold) on each of them once > one is dumped, i.e., sequentially? pg_dump obtains an ACCESS SHARE lock on _every_ table it dumps, including the inherited child tables individually, _before_ it starts dumping anything. -- Andrew, Supernews http://www.supernews.co

Re: [HACKERS] Exclusive lock for database rename

2005-11-03 Thread Andrew - Supernews
AccessShare locks block behind the pending AccessExclusive lock. Otherwise AccessShare locks could starve the exclusive lock forever. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP

Re: [HACKERS] Reducing the overhead of NUMERIC data

2005-11-03 Thread Andrew - Supernews
res UTF-16 for > everything. Even UTF-16 is not fixed-length; some characters require 4 bytes, not 2. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 3: Have you checked our exte

Re: [HACKERS] add_missing_from breaks existing views

2005-10-30 Thread Andrew - Supernews
e 8.1 database (unless the admin did that explicitly, themselves). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [HACKERS] Differences in UTF8 between 8.0 and 8.1

2005-10-27 Thread Andrew - Supernews
On 2005-10-27, Paul Lindner <[EMAIL PROTECTED]> wrote: > On Mon, Oct 24, 2005 at 05:07:40AM -0000, Andrew - Supernews wrote: >> I'm inclined to suspect that the whole sequence c1 f9 d4 c2 d0 c7 d2 b9 >> was never actually a valid utf-8 string, and that the d2 b9 is on

Re: [HACKERS] add_missing_from breaks existing views

2005-10-26 Thread Andrew - Supernews
On 2005-10-26, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2005-10-26, Tom Lane <[EMAIL PROTECTED]> wrote: >>> Pretending it's the user's mistake isn't >>> an answer that fits down my craw ve

Re: [HACKERS] add_missing_from breaks existing views

2005-10-25 Thread Andrew - Supernews
On 2005-10-26, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2005-10-26, Tom Lane <[EMAIL PROTECTED]> wrote: >>> Uh, no ... the global setting of add_missing_from does *not* tell you >>> anything about whethe

Re: [HACKERS] add_missing_from breaks existing views

2005-10-25 Thread Andrew - Supernews
On 2005-10-26, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> Wild idea: how about having pg_dump include SET add_missing_from = true; >> in the dump file if, and only if, it is set that way in the server? > >

Re: [HACKERS] add_missing_from breaks existing views

2005-10-25 Thread Andrew - Supernews
in the dump file if, and only if, it is set that way in the server? Perhaps do this only for server versions <8.1... and ensure that dumps from an 8.1 server include the explicit table names... -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services

Re: [HACKERS] Differences in UTF8 between 8.0 and 8.1

2005-10-23 Thread Andrew - Supernews
Azerbaijani). I know the 8.0 utf-8 check was broken, but I didn't realize it was quite so bad. > and > > B7 ED A8 Likewise, that whole sequence b7 ed a8 c6 a4 was probably never valid; c6 a4 also isn't a character you'd expect to find in common use. My guess is that this wa

Re: [HACKERS] Differences in UTF8 between 8.0 and 8.1

2005-10-22 Thread Andrew - Supernews
Does the 8.1 Unicode sanity code accept the full set of characters > accepted by the 8.0 Unicode sanity code? No. 8.0 and before accepted a lot of stuff that it should never have, and failed to accept stuff that it should have. -- Andrew, Supernews http://www.supernews.com - ind

Re: [HACKERS] Key violation. ERROR: type "lo" does not exist.

2005-10-20 Thread Andrew - Supernews
If he's using bytea columns, then he doesn't want that. Most likely the interface he's using is assuming lo_* style blobs, rather than bytea. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)

Re: [HACKERS] Question about Ctrl-C and less

2005-10-19 Thread Andrew - Supernews
. pclose() is not a signal-safe function, so it can only be called from a signal handler if you _know_ that the signal did not interrupt any non-signal-safe function. (Nor can the signal handler longjmp out in such a case, unless the code is never again going to call any unsafe function.) --

Re: [HACKERS] pg_dump permissions

2005-10-19 Thread Andrew - Supernews
I do a schema-only dump of that table? I find that I need > SELECT permission on the table, even though my user can happily query > the catalogs. pg_dump takes an access share lock on everything it touches, to avoid having the schema change out from under it. -- Andrew, Supernews http://ww

Re: [HACKERS] slow IN() clause for many cases

2005-10-14 Thread Andrew - Supernews
On 2005-10-12, Andrew - Supernews <[EMAIL PROTECTED]> wrote: > On 2005-10-12, Tom Lane <[EMAIL PROTECTED]> wrote: >> Andrew - Supernews <[EMAIL PROTECTED]> writes: >>> As the number of items in the IN clause increases, the planning time grows >>>

Re: [HACKERS] slow IN() clause for many cases

2005-10-12 Thread Andrew - Supernews
On 2005-10-12, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> As the number of items in the IN clause increases, the planning time grows >> rather radically. > > I was looking at this yesterday. There is some O(N^2) be

Re: [HACKERS] slow IN() clause for many cases

2005-10-12 Thread Andrew - Supernews
epare in advance every possible number of parameters to IN that your app is ever going to use, the only way to get useful performance for IN queries with more than a handful of literal values is to use an array method, in spite of the fact that the bitmap-OR execution plan is actually at leas

Re: [HACKERS] initdb profiles

2005-09-09 Thread Andrew - Supernews
On 2005-09-08, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Andrew - Supernews wrote: >> On 2005-09-08, Peter Eisentraut <[EMAIL PROTECTED]> wrote: >> > Andrew - Supernews wrote: >> >> Running initdb behind the scenes is a proven dangerous practice

Re: [HACKERS] initdb profiles

2005-09-08 Thread Andrew - Supernews
On 2005-09-08, Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Andrew - Supernews wrote: >> Running initdb behind the scenes is a proven dangerous practice > > Please elaborate. Example instance: http://archives.postgresql.org/pgsql-hackers/2004-12/msg00851.php More genera

Re: [HACKERS] initdb profiles

2005-09-08 Thread Andrew - Supernews
emove options from initdb, not add them. Running initdb behind the scenes is a proven dangerous practice; why encourage it? -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 9: In versi

Re: [HACKERS] inet increment with int

2005-09-06 Thread Andrew - Supernews
ect '192.168.0.1/24'::inet + -1; > ERROR: Increment returns a network (192.168.0.0/24) rather than a host While I suspect I know where this idea came from, it is equally boneheaded since it is making completely unwarranted assumptions about how inet values are being used. -- Andrew, Sup

Re: [HACKERS] TODO item: set proper permissions on non-system schemas

2005-09-01 Thread Andrew - Supernews
27; databases. Which implies either that you limit each dbowner to one db (in which case why give them createdb privilege in the first place) or that you require superuser intervention to modify pg_hba for each database created. -- Andrew, Supernews http://www.supernews.com - individual and corpora

Re: [HACKERS] TODO item: set proper permissions on non-system schemas

2005-09-01 Thread Andrew - Supernews
On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: >>> Change the ownership of public in template1 to be a "dbadmin" group. >>> Grant member

Re: [HACKERS] TODO item: set proper permissions on non-system schemas

2005-09-01 Thread Andrew - Supernews
On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: >>> There is some merit in the thought that the DB owner should be able to >>> grant and revoke ac

Re: [HACKERS] TODO item: set proper permissions on non-system schemas

2005-09-01 Thread Andrew - Supernews
On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: > Andrew - Supernews <[EMAIL PROTECTED]> writes: >> On 2005-09-01, Tom Lane <[EMAIL PROTECTED]> wrote: >>> There's considerable feeling that that TODO item is bogus anyway. > >> The issue that I&

Re: [HACKERS] Minimally avoiding Transaction Wraparound in VLDBs

2005-08-31 Thread Andrew - Supernews
le, why > run vacuum at all? You can (as of 8.1) disable autovacuum for specific > tables. The exception is that you are forced to run a database-wide > VACUUM once in a while (every billion-and-so), but this will hopefully > disappear in 8.2 too, Wishful thinking, or do you

Re: [HACKERS] TODO item: set proper permissions on non-system schemas

2005-08-31 Thread Andrew - Supernews
_ than public.) (Another wart that could do with looking into is that such a non-superuser database owner can't prevent xid wrap in his database regardless of how often he vacuums it.) -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [HACKERS] Indexing dead tuples

2005-08-31 Thread Andrew - Supernews
is read in SnapshotNow rather than in the query snapshot. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Win32 Thread safetyness

2005-08-24 Thread Andrew - Supernews
ger type, or even a scalar type; it's permitted to be a structure. The only valid operations on pthread_t values are assignment and passing to functions (including pthread_equal() for equality comparison). -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services

Re: [HACKERS] data on devel code perf dip

2005-08-11 Thread Andrew - Supernews
o page caching, so shared_buffers should be increased to > account for this fact. > > Am I missing something? O_DIRECT should only be being used for the WAL, not for buffer I/O. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services -

Re: [HACKERS] Solving the OID-collision problem

2005-08-10 Thread Andrew - Supernews
push > oid to 4 billion. Don't forget TOAST tables, they use oids too. -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services ---(end of broadcast)--- TIP 4: Have you searched our list archive

  1   2   >