Re: [BUGS] BUG #4533: Plpgsql complex type failure

2008-11-26 Thread Rod Taylor
E SECURITY DEFINER RETURNS NULL ON NULL INPUT; SELECT testfunc(); ROLLBACK; On Sat, Nov 22, 2008 at 1:37 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > "Rod Taylor" <[EMAIL PROTECTED]> writes: >> DECLARE >> v_time timestamp_with_precision; >> BEGIN >&g

[BUGS] BUG #4533: Plpgsql complex type failure

2008-11-22 Thread Rod Taylor
The following bug has been logged online: Bug reference: 4533 Logged by: Rod Taylor Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3.5 Operating system: FreeBSD 7.0 Stable Description:Plpgsql complex type failure Details: The below script should be able to

[BUGS] BUG #4182: Enum in Foreign Key broken

2008-05-18 Thread Rod Taylor
The following bug has been logged online: Bug reference: 4182 Logged by: Rod Taylor Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3.1 Operating system: amd64-portbld-freebsd7.0, compiled by GCC cc (GCC) 4.2.1 20070719 [FreeBSD] Description:Enum in Foreign

Re: [HACKERS] [BUGS] BUG #1290: Default value and ALTER...TYPE

2004-10-20 Thread Rod Taylor
On Wed, 2004-10-20 at 14:07, Tom Lane wrote: > "PostgreSQL Bugs List" <[EMAIL PROTECTED]> writes: > > troels=# create table lookat_feature( > > troels(# feature_id char(4), > > troels(# status varchar(2) default 'TODO' > The alternative would seem to be decreeing that this is not a bug. > > C

Re: [BUGS] CREATE INDEX spoils IndexScan planns

2003-10-31 Thread Rod Taylor
> TRACE: > The original tables are much bigger, so I've tried to simplify things here. > Please let me know if there is anything that I could help you with. You can't do that and expect to get reasonable results. The plans will change with the volume of data. Send an explain analyze of the true

Re: [BUGS] minor: ~ not resolved in psql

2003-10-30 Thread Rod Taylor
On Thu, 2003-10-30 at 13:13, Peter Eisentraut wrote: > Bas Scheffers writes: > > > When opening a file in psql, ~ (the user's home dir) is resolved when > > using tab completion to find the file, but when you hit enter and psql > > actualy tries to open it, you get a file not found error. > > Thi

Re: [BUGS] [HACKERS] Autocomplete on Postgres7.4beta5 not

2003-10-28 Thread Rod Taylor
On Tue, 2003-10-28 at 19:34, scott.marlowe wrote: > On Tue, 28 Oct 2003, Tom Lane wrote: > > > "scott.marlowe" <[EMAIL PROTECTED]> writes: > > > Is it possible to remove the implicit search path of pg_catalog from a > > > psql session without it breaking lots of stuff? > > > > Do you consider "+

Re: [BUGS] [HACKERS] Autocomplete on Postgres7.4beta5 not

2003-10-28 Thread Rod Taylor
On Tue, 2003-10-28 at 18:49, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > I say leave it the way it is. If you want system table tab completion, > > simply: > > ALTER USER ... SET search_path =3D pg_catalog,...; > > Unfortunately, that *do

Re: [BUGS] [HACKERS] Autocomplete on Postgres7.4beta5 not working?

2003-10-28 Thread Rod Taylor
> Anyway, it seems like we need a vote to see how many people prefer > each choice. I say leave it the way it is. If you want system table tab completion, simply: ALTER USER ... SET search_path = pg_catalog,...; I would like to see the information_schema be a part of the default search_p

Re: [BUGS] minor: ~ not resolved in psql

2003-10-27 Thread Rod Taylor
> Please enter a FULL description of your problem: > > When opening a file in psql, ~ (the user's home dir) is resolved when > using tab completion to find the file, but when you hit enter and psql > actualy tries to open it, you get a file not found

Re: [BUGS] Table alias fun == incorrectly adding tables to join...

2003-09-22 Thread Rod Taylor
> NOTICE: adding missing FROM-clause entry for table "table_s1" > NOTICE: adding missing FROM-clause entry for table "table_s2" > and execution times explode, naturally. I don't know if the spec says > this is the correct behavior or not, but I have a feeling its not and > this is a bug. This

Re: [BUGS] select where id=random()*something returns two results

2003-09-22 Thread Rod Taylor
On Sun, 2003-09-21 at 08:21, Ulrich Meis wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:pgsql-bugs- > > [EMAIL PROTECTED] On Behalf Of Jean-Luc Lachance > > Sent: Friday, September 19, 2003 4:44 PM > > To: Rod Taylor > > Cc: Ulrich Mei

Re: [BUGS] select where id=random()*something returns two results

2003-09-18 Thread Rod Taylor
> select * from quotes where id=1+round(random()* cast ((select max(id) > from quotes) as double precision)); > id | quote | > author > -+---+-- > --- > 187 | Vergib

Re: [BUGS] Is it bug???

2003-09-05 Thread Rod Taylor
On Fri, 2003-09-05 at 09:18, Bruno Wolff III wrote: > On Wed, Sep 03, 2003 at 23:19:24 -0700, > Ringo <[EMAIL PROTECTED]> wrote: > > What a prick.. > > >From observing Tom's responses here, I think this is a real question (not > an RTFM response). If the documentation doesn't make it clear to ne

Re: [BUGS] Postgre connection management

2003-08-22 Thread Rod Taylor
On Thu, 2003-08-21 at 07:55, Annu Panesar wrote: > hi > i need help urgently to understand how postgres manages its connection > pool , how it manages deadlock . we are using postgres See http://www.postgresql.org/docs/7.3/static/explicit-locking.html Section 9.3.3 for DeadLocks. signature.asc D

Re: [BUGS] UNION discards indentical rows in postgres 7.3.3

2003-08-14 Thread Rod Taylor
> Wrong ! The query should return 4 rows. In other words i don't know > why postgres performs the following query: I think the syntax you're looking for is UNION ALL. select a,b from t1 union all (select distinct a,b from t2); signature.asc Description: This is a digitally signed message part

Re: [BUGS] 7.3.3 ADD COLUMN wierdness

2003-06-16 Thread Rod Taylor
ing column creation, this will not work that way. You could argue we should allow NOT NULL to be added to an empty table. -- Rod Taylor <[EMAIL PROTECTED]> PGP Key: http://www.rbt.ca/rbtpub.asc signature.asc Description: This is a digitally signed message part

Re: [BUGS] Index speeds up one row table (why)?

2003-06-01 Thread Rod Taylor
scan on a very small table is what you want to have. In this particular case, vacuum removed over 11000 dead versions of the tuple. An 8 k page will hold approx 140 tuples based on your structure. So, for every ~100 updates you'll want to run vacuum (regular, not full) on the table

Re: [BUGS] Bug #918: pg_dump problem w/ SEQUENCE

2003-03-27 Thread Rod Taylor
at or near "WITH" at character 38 > > > > PS: I have downloaded the snapshot monday 24/03/2003 > > > > Bye > > > > Laurent > > > > > > Sample Code > > > > > > No file was uploaded with this report > > > > > >

Re: [BUGS] Bug #880: COMMENT ON DATABASE depends on current

2003-01-27 Thread Rod Taylor
omment to a database you presumably > > already know (since you connected to it) does not seem to justify the > > confusion it causes. > > Good analysis. Is removal actually the best solution? Front-ends like pg_admin actually make pretty good use out of it. -- Rod Taylor <[

Re: [BUGS] Bug #880: COMMENT ON DATABASE depends on current

2003-01-24 Thread Rod Taylor
lr%3Dlang_en%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26selm%3D04f201c1e7cc%25243479b2a0%25248001a8c0%2540jester%26rnum%3D1 -- Rod Taylor <[EMAIL PROTECTED]> PGP Key: http://www.rbt.ca/rbtpub.asc signature.asc Description: This is a digitally signed message part

Re: [BUGS] Bug #867: CLUSTER does not rebuild referential

2003-01-08 Thread Rod Taylor
> > -> see that ri_triggers are vanished. > > > No file was uploaded with this report > > > ---(end of broadcast)--- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/f

Re: [BUGS] contrib/adddepend does not properly re-create

2002-12-01 Thread Rod Taylor
On Sun, 2002-12-01 at 18:57, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > Adams patch is good. Please apply when you find time. > > I'm a bit confused by the patch --- it has a patch against "upgrade.pl" > which is not to be seen in contr

Re: [BUGS] contrib/adddepend does not properly re-create

2002-12-01 Thread Rod Taylor
On Sun, 2002-12-01 at 14:11, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > It makes sense, but I've not tested it yet. > > Okay, I'll hold off applying until you check it. It's not urgent, > but I'd like to have it fixed in 7.3.1, which

Re: [BUGS] contrib/adddepend does not properly re-create

2002-12-01 Thread Rod Taylor
the program and attached patches to > > both original upgrade.pl and contrib/adddepend scripts. > > Rod, do you concur that this is a correct patch? -- Rod Taylor <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part

Re: [BUGS] DROP COLUMN really work?

2002-12-01 Thread Rod Taylor
VACUUM FULL abba, but this didn't help. Thanks a lot for comments. > > > P.S. btw, I upgrade my DBs from 7.2.1 to 7.3 version without any problems, but > found, that psql's help messages (\h, \h alter table etc.) not from 7.3 > version. For example, it do not

Re: [BUGS] regression hickups w/ freebsd.

2002-11-27 Thread Rod Taylor
h: 201-798-4983 > b. palmer, [EMAIL PROTECTED] pgp:crimelabs.net/bpalmer.pgp5 > > > __ > > ---(end of broadcast)------- > TIP 1: subscribe

Re: [BUGS] RULE: ON DELETE doesn't stack deletes

2002-11-26 Thread Rod Taylor
exists in the view? On Wed, 2002-11-20 at 10:49, Malcolm Hutty wrote: > According to the manual you can stack multiple queries in a RULE: > CREATE RULE R_DEL_AB AS > ON DELETE TO V_AB > DO INSTEAD > ( > DELETE FROM A WHERE a_data=OLD.a_data; > DELETE FROM B WHERE b_data=OLD.

Re: [BUGS] vacumm error

2002-11-26 Thread Rod Taylor
rashed with fsync off, is to dump and reload the database. This should clean up any data issues you currently have -- assuming pg_dump functions on it. That said, 7.2.3 has several vacuum fixes, but I don't think they'll fix your problem. -- Rod Taylor <[EMAIL PROTECTED]&g

Re: [BUGS] PostgreSQL No Longer Handles Mixed Case Sequences

2002-11-15 Thread Rod Taylor
ll affected tables. You need to either: ALTER TABLE RENAME "T_Tester_id_seq" TO t_tester_id_seq; Or ALTER TABLE "T_Joint" ALTER COLUMN id SET DEFAULT nextval('"T_Tester_id_seq"'::text); The first converts the case of the sequence name to lower, the second

Re: [BUGS] Bug in pg_dump

2002-11-15 Thread Rod Taylor
t dependency tracking mechanism. 7.4 should hold the fix for pg_dump, although 7.3 has the dependency tracking mechanism. -- Rod Taylor <[EMAIL PROTECTED]> ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [BUGS] I have problem with Postgres.

2002-11-15 Thread Rod Taylor
her than trying to fetch out max(obj_id). select currval('object_list_obj_id_seq') AS nextvalue; after the insert into object_list. > > $sth = $dbh->prepare("select max(obj_id) from object_list"); > $sth->execute(); > $ma

Re: [BUGS] Bug #790: Optimizer does not want to use an index for

2002-09-29 Thread Rod Taylor
right direction. For 7.2, use obj_id='100'. Quotes make the entry UNKNOWN which is casted to int8 and should use the index. -- Rod Taylor ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [BUGS] Bug #774: Sometimes we do not get the correct record set

2002-09-19 Thread Rod Taylor
-- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED]) > -- Rod Taylor ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [BUGS] Bug #772: Rewriting on multi-record updates is

2002-09-18 Thread Rod Taylor
cal row, you probably want to use a trigger not a rule. Rules are most useful for situations that call for transforming entire queries independently of the specific data being handled. Not that the description is obvious, but it's there. Perhaps you know of a better way (place) to state t

Re: [BUGS] SET autocommit begins transaction?

2002-09-18 Thread Rod Taylor
ybe that > has to be reopened because if we did that, it would make perfect sense > because all SETs would be outside transactions. Of course, the reason they're rollbackable is: begin; create schema newschema; set search_path = newschema; rollback; creat

Re: [BUGS] Bug #772: Rewriting on multi-record updates is

2002-09-18 Thread Rod Taylor
ATE T2 SET X=2 WHERE ID=1 AND T1=1; > > SELECT * FROM T2; > SELECT * FROM T1; > > UPDATE T2 SET X=3 WHERE ID=1 AND T1=2; > > SELECT * FROM T2; > SELECT * FROM T1; > > UPDATE T2 SET X=5 WHERE ID=2 AND T1=1; > > SELECT * FROM T2; > SELECT * FROM

Re: [BUGS] HELP

2002-09-12 Thread Rod Taylor
RT > statements have no issues. Try VACUUM FULL (different than regular VACUUM). Try dumping data / shutdown daemon / fry data directory / initdb / start daemon / restore data. -- Rod Taylor ---(end of broadcast)--- TIP 3: if posting/read

Re: [BUGS] Bug #759: 7.3beta1 DROP COLUMN DEPENDENCY PROBLEM

2002-09-06 Thread Rod Taylor
. Yup.. Your going to have to drop all of the views, then the column. Or, ALTER TABLE ... DROP COLUMN .. CASCADE -- which will blow away the views for you. > On Fri, 2002-09-06 at 09:17, Tom Lane wrote: > > Rod Taylor <[EMAIL PROTECTED]> writes: > > > Indeed. At th

Re: [BUGS] Bug #759: 7.3beta1 DROP COLUMN DEPENDENCY PROBLEM

2002-09-06 Thread Rod Taylor
On Fri, 2002-09-06 at 09:17, Tom Lane wrote: > Rod Taylor <[EMAIL PROTECTED]> writes: > > Indeed. At the INNER JOIN it would appear that an alias is applied to > > the columns of a given table. > > ... > > The real trick is to make INNER JOINS less greedy in th

Re: [BUGS] Bug #759: 7.3beta1 DROP COLUMN DEPENDENCY PROBLEM

2002-09-06 Thread Rod Taylor
Indeed. At the INNER JOIN it would appear that an alias is applied to the columns of a given table. { RTE :alias { ALIAS :aliasname b :colnames <>} :eref { ALIAS :aliasname b :colnames ( "col_b" "col_c" )} :rtekind 0 :relid 17194 :inh true :inFromCl true :checkForRead true :checkForWrite fals

Re: [BUGS] Bug #756: suggestion: file with password instead of

2002-09-05 Thread Rod Taylor
> > My understanding is that it's a single password, not a list. > > It isn't a single password. It is a file containing one password per > line with pattern matching. Oh, well in that case it should probably be a default spot in the home directory. ---(end of broadcas

Re: [BUGS] Bug #756: suggestion: file with password instead of

2002-09-05 Thread Rod Taylor
On Thu, 2002-09-05 at 12:14, Bruce Momjian wrote: > Rod Taylor wrote: > > On Thu, 2002-09-05 at 05:13, Reinhard Max wrote: > > > On 4 Sep 2002 at 12:48, Rod Taylor wrote: > > > > > > > This item: > > > > Add file to hold passwords using PGPA

Re: [BUGS] Bug #756: suggestion: file with password instead of

2002-09-05 Thread Rod Taylor
On Thu, 2002-09-05 at 05:13, Reinhard Max wrote: > On 4 Sep 2002 at 12:48, Rod Taylor wrote: > > > This item: > > Add file to hold passwords using PGPASSWORDFILE environment variable > > > > Has been completed, and will be a part of the 7.3 release. > &g

Re: [BUGS] Bug #756: suggestion: file with password instead of

2002-09-04 Thread Rod Taylor
This item: Add file to hold passwords using PGPASSWORDFILE environment variable Has been completed, and will be a part of the 7.3 release. Thanks, Rod On Wed, 2002-09-04 at 11:54, [EMAIL PROTECTED] wrote: > Wojciech Scigala ([EMAIL PROTECTED]) reports a bug with a severity of 4 > The lo

Re: [BUGS] Bug #755: Error on create a new sequence by using the

2002-09-03 Thread Rod Taylor
7.3 will partially fix this issue by extending the length of the NAME data type. Ie. You won't hit it until you have large (32+ character) length names. On Tue, 2002-09-03 at 16:31, [EMAIL PROTECTED] wrote: > Søren Laursen ([EMAIL PROTECTED]) reports a bug with a severity of 2 > The lower the n

Re: [BUGS] ERROR: parser: parse error at or near "'"

2002-09-03 Thread Rod Taylor
Single single quote literals, double quote literals. 'profiles' => "profiles" On Tue, 2002-09-03 at 10:56, * * wrote: > I'm getting the error ERROR: parser: parse error at or near "'" > This is my sql statement in my servlet and i don't see what's wrong with it. > > SQL = "Select users.first_n

Re: [BUGS] Command-line client sometimes misinterprets tabs for

2002-08-29 Thread Rod Taylor
> Can tab completion be disabled without disabling command line history? I > noticed -n disables both. I would gladly trade tab completion for tab > pastability, but I rely heavily on command line history. Perhaps annoying, but a simple work around is to use Formats like tab in the code, b

Re: [BUGS] Command-line client sometimes misinterprets tabs for

2002-08-29 Thread Rod Taylor
The problem is that most items in postgresql are tab completed. Cut and past your text into a bash or zsh prompt. It injects a bunch of filenames into your data, as per tab completion. Annoying, but for the benefits it's livable. Perhaps a toggle could be created to disable tab completion? O

[BUGS] Foreign Key woes -- 7.2 and ~7.3

2002-04-16 Thread Rod Taylor
at all -- which shouldn't be an issue as there is still the unique. Not the brightest thing to do, but surely the primary key shouldn't be enforced to exist before a plain old unique. If thats the case, then unique indecies need to be blocked until there is a primary key, or the first one

[BUGS] 7.2 crash...

2002-03-19 Thread Rod Taylor
-- I just tell how). Anyway, any crash is a bad crash I suppose. -- Rod Taylor Your eyes are weary from staring at the CRT. You feel sleepy. Notice how restful it is to watch the cursor blink. Close your eyes. The opinions stated above are yours. You cannot imagine why you ever felt