[BUGS] BUG #2717: performance problem with enable_bitmapscan

2006-10-24 Thread Pavel
The following bug has been logged online: Bug reference: 2717 Logged by: Pavel Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Linux Redhat Description:performance problem with enable_bitmapscan Details: Hi, i have a following

[BUGS] BUG #2716: performance problem with enable_bitmapscan

2006-10-26 Thread Pavel
The following bug has been logged online: Bug reference: 2716 Logged by: Pavel Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Linux Redhat Description:performance problem with enable_bitmapscan Details: Hi, i have a following

[BUGS] BUG #2324: OLE DB Provider error

2006-03-16 Thread Pavel
The following bug has been logged online: Bug reference: 2324 Logged by: Pavel Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1 Operating system: Windows XP Description:OLE DB Provider error Details: I have troubles/errors with the PostgreSQL OLE DB

Re: [BUGS] BUG #4324: Default value for a column is not returned in select when column has not been explicitly set

2008-07-26 Thread Pavel Stehule
s=# insert into g1(c) VALUES ('ahoj'); INSERT 0 1 postgres=# select * from g1; a | c ---+-- t | ahoj (1 row) regards Pavel Stehule 2008/7/26 Jeff Galyan <[EMAIL PROTECTED]>: > > The following bug has been logged online: > > Bug reference: 4324 > Logged

Re: [BUGS] BUG #4336: Strange behaviour for to_ascii

2008-07-31 Thread Pavel Stehule
CTION postgres=# postgres=# SELECT to_ascii(convert_to('Příliš žlutý kůň', 'latin2'),'latin2'); to_ascii -- Prilis zluty kun (1 row) postgres=# SELECT to_ascii(convert_to('école','LATIN9'),'LATIN9'); to_ascii --

Re: [BUGS] BUG #4342: upper, lower, initcap do not work with umlaute?

2008-08-06 Thread Pavel Stehule
W server_encoding; server_encoding - UTF8 (1 row) Encoding have to be same like encoding used in locales. If not, then functions upper, lower doesn't work. regards Pavel Stehule > the result is this: > Xxx XXX öÖöÖäÄäÄä öÖöÖäÄäÄä > > Hope this h

Re: [BUGS] Postgresql v8.3.3 + Perl v5.10

2008-08-22 Thread Pavel Stehule
, which are not evident from your > description. > This bug was reported I though. win installer doesn't recognize installed Perl 5.10 and doesn't allow plperl installation. Pavel > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your s

Re: [BUGS] Need default password for the user "sa"

2008-08-25 Thread Pavel Stehule
Hello PostgreSQL doesn't know username "sa". Same role is "postgres" in PostgreSQL. What is your operation system? regards Pavel Stehule p.s. it isn't bug, so mail to mailing list general - http://www.postgresql.org/mailpref/pgsql-general 2008/8/25 Janar

Re: [BUGS] Need default password for the user "sa"

2008-08-25 Thread Pavel Stehule
2008/8/25 Janardhanachari, Jagadeesha <[EMAIL PROTECTED]>: > What is the password for postgres ? You filled it on win platforms, on unix platform this password isn't filled. Try to login as system user postgres, then open local connect to postgresql and then you can change pa

Re: [BUGS] non-deterministic error related to MIN/MAX optimization

2008-08-26 Thread Pavel Stehule
ure anyhow. Given the > definitional issues involved with multiple SRFs in the same targetlist, > putting more effort into the feature doesn't seem like a great > investment of time. I dislike this feature - sometime we can do nice hack with it, but it's very dificult readabl

Re: [BUGS] Bug with FOR ... LOOP and composite types

2008-09-01 Thread Pavel Stehule
;t_func" () RETURNS SETOF "t_table" AS postgres-# $body$ postgres$# DECLARE postgres$# rec record; postgres$# BEGIN postgres$# FOR rec IN postgres$# SELECT * postgres$# FROM t_table postgres$# WHERE 1=0 postgres$# LOOP postgres$# RETURN NEXT rec; postgres$# END LOOP; postgres$# END; post

Re: [BUGS] Bug in RETURN QUERY

2008-09-01 Thread Pavel Stehule
t; buggy_enum_fieldNOTICE: drop cascades to table bug_table column > buggy_enum_field > ERROR: structure of query does not match function result type > CONTEXT: PL/pgSQL function "buggy_procedure" line 3 at RETURN QUERY*/ this isn't bug, it's feature. Informations sto

Re: [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2008-11-06 Thread Pavel Stehule
3/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS > > RETURN isn't one of them. > >regards, tom lane > It should be enhanced - my initial proposal of return query expected so return query is last statement, that isn't now. So we could ad

Re: [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2008-11-06 Thread Pavel Stehule
2008/11/6 Tom Lane <[EMAIL PROTECTED]>: > "Pavel Stehule" <[EMAIL PROTECTED]> writes: >> 2008/11/6 Tom Lane <[EMAIL PROTECTED]>: >>> RETURN isn't one of them. > >> It should be enhanced - my initial proposal of return query expected >&

Re: [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2008-11-13 Thread Pavel Stehule
I am sending patch, that adds FOUND and GET DIAGNOSTICS support for RETURN QUERY statement Regards Pavel Stehule 2008/11/10 Andrew Gierth <[EMAIL PROTECTED]>: >>>>>> "Pavel" == "Pavel Stehule" <[EMAIL PROTECTED]> writes: > > >>

Re: [BUGS] Bug in plpgsql, when using NEW with composite field value.

2008-12-10 Thread Pavel Stehule
: 10 INSERT 0 1 regards Pavel Stehule 2008/12/10 Oleg Serov <[EMAIL PROTECTED]>: > SQL: > > CREATE OR REPLACE FUNCTION "bug_with_triggers" () RETURNS trigger AS > $body$ > BEGIN >PERFORM COALESCE(NEW.some_composite_field.field, TRUE); > END; > $

Re: [BUGS] plpgsql bug OR future request: Assign fileds in composite subfiled. eg. table.compositefield.subfield := TRUE;

2008-12-10 Thread Pavel Stehule
t; $body$ > DECLARE >row_main_table main_type%rowtype; > BEGIN >row_main_table.subtype := NULL; -- all okey; >row_main_table.subtype.flag := FALSE; -- cannot set try (row_main_table.subtype).flag := FALSE; -- cannot set regards Pavel Stehule > END

Re: [BUGS] BUG #4596: information_schema.table_privileges is way too slow

2008-12-25 Thread Pavel Stehule
; Kirill two years ago I tested 5 users without problems. Try to vacuum and reindex your system tables regards Pavel Stehule > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-

Re: [BUGS] BUG #4596: information_schema.table_privileges is way too slow

2008-12-25 Thread Pavel Stehule
Really, this view is strange. I'll look on at Pavel 2008/12/25, Kirill Simonov : > Pavel Stehule wrote: >> 2008/12/25 Kirill Simonov : >>> Tom Lane wrote: >>>> "Kirill Simonov" writes: >>>>> It takes about 5 minutes to perform the q

Re: [BUGS] BUG #4596: information_schema.table_privileges is way too slow

2008-12-25 Thread Pavel Stehule
Hello really it's should be slow, it's cross join pg_class, pg_authid, pg_authid for fast respond you have to specify minimally table_name and grantor fields. select * from information_schema.table_privileges where table_name = 'foo' and grantor = 'pavel'; reg

Re: [BUGS] Problem with instalation

2009-01-05 Thread Pavel Stehule
t initalize. initdb is one postgresql installed application http://www.pgsql.cz/index.php/Instalace_PostgreSQL#Instalace_v_Microsoft_Windows regards Pavel Stehule pripadne jsem na icq > > > > Thanks > > > > Tom Dixa -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [HACKERS] [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2009-01-10 Thread Pavel Stehule
END IF; RETURN QUERY some_other; RETURN; regards Pavel Stehule -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [HACKERS] [BUGS] BUG #4516: FOUND variable does not work after RETURN QUERY

2009-01-10 Thread Pavel Stehule
2009/1/10 Heikki Linnakangas : > Pavel Stehule wrote: >> >> My first patch expected so RETURN QUERY is final statement, so I don't >> solve FOUND variable, but Heikki changed this behave. > > Me? I don't recall doing anything related to this. > I have

[BUGS] server crash when tsearch2 function is called from update trigger

2009-01-28 Thread Pavel Stehule
lan=0x883b114, sourceText=0x883945c "update t set d = d;", params=, dest=0x883b190, completionTag=0xbfa8611a "") at pquery.c:196 #11 0x08264877 in PortalRunMulti (portal=0x887e91c, isTopLevel=, dest=0x883b190, altdest=0x883b190, completionTag=0xbfa8611a "") at pq

Re: [BUGS] BUG #4629: PL/pgSQL issue

2009-02-02 Thread Pavel Stehule
only works when the INSERT is at > the start of the statement :-(. Guess we need to change that. > > In the meantime, you can probably work around this by using EXECUTE, > ie > We should ignore INTO keyword when statement starts with CREATE keyword. This patch have to simple. I'

Re: [BUGS] BUG #4629: PL/pgSQL issue

2009-02-02 Thread Pavel Stehule
2009/2/2 Tom Lane : > Pavel Stehule writes: >> We should ignore INTO keyword when statement starts with CREATE >> keyword. This patch have to simple. I'll prepare it. > > I'm already on it... > > regards, tom lane ok Reg

Re: [BUGS] Set-returning functions only allowed if written in language 'sql'

2009-02-10 Thread Pavel Stehule
Hello this limit will be removed at 8.4 in older version you have to use table notation like select * from srf() regards Pavel Stehule 2009/2/10 Daniel Migowski : > Hello dear PostgreSQL developers, > > I noticed the following strange behaviour with set-returning functions. If &

[BUGS] BUG #4662: make failed using MinGW under WinXP

2009-02-16 Thread Pavel Golub
The following bug has been logged online: Bug reference: 4662 Logged by: Pavel Golub Email address: pavel.go...@gf.microolap.com PostgreSQL version: 8.4 Operating system: Windows XP SP3 Description:make failed using MinGW under WinXP Details: $ make We got an

Re: [BUGS] BUG #4704: syntax error at or near "RETURNING"

2009-03-14 Thread Pavel Stehule
Hello it's not bug, 8.1 doesn't support RETURNING clause http://www.postgresql.org/docs/8.1/static/sql-insert.html please, upgrade to current stable release (8.3) regards Pavel Stehule 2009/3/14 Brad Constantinescu : > > The following bug has been logged online: > > Bu

Re: [BUGS] BUG #4662: make failed using MinGW under WinXP

2009-04-12 Thread Pavel Golub
4662 PG> Logged by: Pavel Golub PG> Email address: pavel.go...@gf.microolap.com PG> PostgreSQL version: 8.4 PG> Operating system: Windows XP SP3 PG> Description:make failed using MinGW under WinXP PG> Details: PG> $ make PG> We got an error: PG>

Re: [BUGS] BUG #4783: new syntax in tablefunction - not output cells

2009-04-26 Thread Pavel Stehule
$ SELECT tst.id, tst.vl FROM tst; END $body$ LANGUAGE 'sql' IMMUTABLE CALLED ON NULL INPUT SECURITY DEFINER COST 1000 ROWS 1000; regards Pavel Stehule 2009/4/26 Alex : > > The following bug has been logged online: > > Bug reference:      4783 > Logge

Re: [BUGS] 42804: structure of query does not match error where using RETURN QUERY

2009-05-08 Thread Pavel Stehule
Hello you have to do vacuum full cerber.cerber_account regards Pavel Stehule 2009/5/8 Michal Szymanski : > Hi, > We call DB procedure that select rows with given ID it works as simple > SELECT but for future changes we implement as DB procedure (look below > for DB listing).

Re: [BUGS] BUG #4903: Sugestion a db modele like mysql workbrench

2009-07-06 Thread Pavel Golub
an help to migrate more people from mysql to postgreSQL -- With best wishes, Pavel mailto:pa...@gf.microolap.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #4907: stored procedures and changed tables

2009-07-09 Thread Pavel Stehule
Hello this is known bug - you have to drop modified table and create it again. I believe so this should be fixed early - in this summer. regards Pavel Stehule 2009/7/10 Sergey Burladyan : > Alvaro Herrera writes: > >> Michael Tenenbaum wrote: >> >> > If I have a stor

Re: [BUGS] BUG #4916: wish: more statistical functions (median, percentiles etc)

2009-07-10 Thread Pavel Stehule
by 1)); median 114 (1 row) tested on pagila database regards Pavel Stehule > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-bugs > -- Sent via

[BUGS] fix: plpgsql: return query and dropped columns problem

2009-07-12 Thread Pavel Stehule
Hello there is fix for bug Re: [BUGS] BUG #4907: stored procedures and changed tables regards Pavel Stehule 2009/7/10 Sergey Burladyan : > Sergey Burladyan writes: > >> Alvaro Herrera writes: >> >> > Michael Tenenbaum wrote: >> > >> > > If

Re: [BUGS] fix: plpgsql: return query and dropped columns problem

2009-07-20 Thread Pavel Stehule
both tupdescs. >>> >> >> ah! ok, i see... i will mark the patch as "waiting on author" and then >> will try to fix it myself unless pavel wants to do it himself >> > > patch attached > super, thanks Pavel > > -- > Atentamente, > Jaim

Re: [BUGS] issue:pgsql trigger with script file

2009-07-28 Thread Pavel Stehule
ion. But if you need it, then you can use http://plsh.projects.postgresql.org/ I don't know if there is some similar project on window, but it's not hard to write custom function in C and wrap exec system call. On windows you can use plperlu and call external app from it. regards

Re: [BUGS] fix: plpgsql: return query and dropped columns problem

2009-07-28 Thread Pavel Stehule
2009/7/28 Robert Haas : > On Tue, Jul 28, 2009 at 1:19 PM, Jaime > Casanova wrote: >> On Tue, Jul 28, 2009 at 12:12 PM, Robert Haas wrote: >>>>> >>>>> patch attached >>>>> >>>> super, thanks >>>> >>>> Pav

Re: [BUGS] fix: plpgsql: return query and dropped columns problem

2009-07-30 Thread Pavel Stehule
e another routine that does that --- probably using a > mapping data structure set up by validate_tupdesc_compat, since in some > of these cases we'll be processing many tuples.  Then the callers just > have to know enough to call the tuple-translation function when > validate_tupdes

Re: [BUGS] fix: plpgsql: return query and dropped columns problem

2009-08-03 Thread Pavel Stehule
There is fixed patch. Please, Jaime, can you look on it? Thank You Pavel 2009/7/30 Tom Lane : > Jaime Casanova writes: >>> On Mon, Jul 20, 2009 at 10:09 AM, Alvaro >>>> Getting rid of the check on natts was "ungood" ... it needs to compare >>>> th

Re: [BUGS] BUG #4997: Expression evaluation rules

2009-08-20 Thread Pavel Stehule
2009/8/20 Dmitry Samokhin : > > The following bug has been logged online: > > Bug reference:      4997 > Logged by:          Dmitry Samokhin > Email address:      s...@mail.ru > PostgreSQL version: 8.3.7 > Operating system:   Windows 2003 Server > Description:        Expression evaluation rules > D

Re: [BUGS] BUG #4997: Expression evaluation rules

2009-08-20 Thread Pavel Stehule
x27;UPDATE' OR TG_OP = 'DELETE' THEN EXECUTE 'CASE WHEN $1 = 'DELETE' THEN true ELSE $2.a <> $3.a END' USING TG_OP, OLD.a, OLD.b INTO result; IF result THEN RAISE NOTICE 'OK!'; Regards Pavel Stehule -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] BUG #5001: can not prepare for where $1 is null

2009-08-21 Thread Pavel Stehule
setof test as $$ declare _r record; begin for _r in execute 'select * from test where ' || quote_ident(_name) || ' is null' loop return next r; end loop; return; end; $$ language plpgsql; regards Pavel Stehule > > -- > Sent via pgsql-bugs mailing li

Re: [BUGS] Password

2009-08-26 Thread Pavel Stehule
our database is unsecured!!!). Reload, then you can login to database as postgres - password will be ignored. execute SQL: ALTER USER postgres PASSWORD 'newpaswd'; change authentication back for local (ident or md5)!!!! reload regards Pavel Stehule > Thanks for your hel

Re: [BUGS] inconsistent composite type null handling in plpgsql out variable

2009-08-31 Thread Pavel Stehule
e, that null::foo and (null, >> null)::foo should not be distinct. > > The more awkward case (to me anyway) is that the standard says (1,NULL) > IS NULL should evaluate to TRUE. what? only (NULL, NULL) IS NULL is true regards Pavel Stehule p.s. what isn't consistent (maybe - th

Re: [BUGS] inconsistent composite type null handling in plpgsql out variable

2009-09-01 Thread Pavel Stehule
2009/9/1 Sam Mason : > On Mon, Aug 31, 2009 at 07:26:59PM +0200, Pavel Stehule wrote: >> 2009/8/31 Sam Mason : >> > The more awkward case (to me anyway) is that the standard says (1,NULL) >> > IS NULL should evaluate to TRUE. >> >> what? >> >&g

Re: [BUGS] BUG #5032: unexpected syntax error for plpgsql function returns table

2009-09-02 Thread Pavel Stehule
Hello it's not bug - PostgreSQL doesn't support parameter placeholder on this position. Use dynamic query instead - plpgsql statement EXECUTE. regards Pavel Stehule 2009/9/3 Keith Cascio : > > The following bug has been logged online: > > Bug reference:      5032 >

Re: [BUGS] BUG #5032: unexpected syntax error for plpgsql function returns table

2009-09-03 Thread Pavel Stehule
2009/9/3 Keith Cascio : > Pavel, > > On Thu, 3 Sep 2009, Pavel Stehule wrote: > >> it's not bug - PostgreSQL doesn't support parameter placeholder on this >> position. Use dynamic query instead - plpgsql statement EXECUTE. > > Thank you for your reply.  I

Re: [BUGS] BUG #5032: unexpected syntax error for plpgsql function returns table

2009-09-03 Thread Pavel Stehule
2009/9/3 Robert Haas : > On Sep 2, 2009, at 11:27 PM, Pavel Stehule wrote: > >> Hello >> >> it's not bug - PostgreSQL doesn't support parameter placeholder on >> this position. Use dynamic query instead - plpgsql statement EXECUTE. > > It may not be

Re: [BUGS] BUG #5035: cast 'text' to 'name' doesnt work in plpgsqlfunction

2009-09-07 Thread Pavel Stehule
postgres=# explain select * from pg_class where relname='aaa'; QUERY PLAN - Index Scan using pg_class_relname_nsp_index on pg_class (cost=0.00..8.27 rows= 1 width=18

Re: [BUGS] BUG #5035: cast 'text' to 'name' doesnt work in plpgsqlfunction

2009-09-07 Thread Pavel Stehule
2009/9/7 Pavel Stehule : > Hello > > 2009/9/7 Tomasz Karlik : >> >> >>>>> Alvaro Herrera 9/4/2009 7:23 PM >>> >> tkar...@ultimo.pl wrote: >> >>> Without casting function executes much slower: >>> >>> CREATE OR REP

Re: [BUGS] BUG #5043: Stored procedure returning different results for same arguments

2009-09-08 Thread Pavel Stehule
ike plpgsql function? regards Pavel Stehule 2009/9/8 Martin Edlman : > > The following bug has been logged online: > > Bug reference:      5043 > Logged by:          Martin Edlman > Email address:      edl...@fortech.cz > PostgreSQL version: 8.2.0 > Operating system:   Lin

Re: [BUGS] BUG #5043: Stored procedure returning different results for same arguments

2009-09-09 Thread Pavel Stehule
ON > schemebind. So the trigger deletes the '2009-09-01' record, > get_schemebind_date() then returns correct result '2008-11-01'. But > xfunc() then fails and the trigger operation is rolled back and I see > the '2009-09-01' record again... > Sorry guys for bother

Re: [BUGS] BUG #5110: lower() function

2009-10-13 Thread Pavel Stehule
tion > Details: > > Upgrade from 8.1.15 -> 8.3.8 > lower(text) for Estonian characters don't work any more. > Server encoding - LATIN9 > Client encoding - LATIN9 > On 8.1.15 it worked. > Hello did you initialize database with correct locale? Regards Pavel Ste

Re: [BUGS] BUG #5136: Please drop the string literal syntax for CREATE FUNCTION ...

2009-10-25 Thread Pavel Stehule
QL, T-SQL). But PostgreSQL supports plpgsql, plperl, plpython as sql procedures - and I am sure, so standard doesnt calculate with multilangual environments. Regards Pavel Stehule Do you mean it can never > be for some reason ? How about a simple function ? > > Thank you, > Timot

Re: [BUGS] BUG #5136: Please drop the string literal syntax for CREATE FUNCTION ...

2009-10-25 Thread Pavel Stehule
2009/10/25 Timothy Madden : > > On Sun, Oct 25, 2009 at 6:17 PM, Pavel Stehule > wrote: >> >> 2009/10/25 Timothy Madden : >> > >> > >> > On Sun, Oct 25, 2009 at 12:42 PM, Peter Eisentraut >> > wrote: >> >> >> >>

Re: [BUGS] BUG #5136: Please drop the string literal syntax for CREATE FUNCTION ...

2009-10-25 Thread Pavel Stehule
already, would probably >> represent about 1% of the work needed to implement what the spec >> suggests. > > > I would like to put to good use the statements and expression that do match > (SELECT/INSERT/UPDATE/ ...), and the very function declaration syntax is > getting

Re: [BUGS] BUG #5154: ERROR: cannot assign non-composite value to a row variable

2009-10-30 Thread Pavel Stehule
rn v; end; $f$; > CREATE FUNCTION > This isn't bug - it is just feature. ROW value cannot contain scalar value. If you would to like reset variable, use NULL row constant. BEGIN v := (NULL, NULL); -- it is equalent to NULL RAISE NOTICE 'IS IT NULL %', v IS NULL; RET

Re: [BUGS] BUG #5154: ERROR: cannot assign non-composite value to a row variable

2009-10-31 Thread Pavel Stehule
2009/11/1 Andrew Gierth : >>>>>> "Pavel" == Pavel Stehule writes: > >  >> As discussed on the irc. I had a problem with a utility function >  >> that was being passed a NEW row and a null for the OLD row. The >  >> error was created

Re: [BUGS] BUG #5180: How to get only User created tables by using SQLTables() in ODBC

2009-11-12 Thread Pavel Stehule
| user_defined_type_catalog| user_defined_type_schema | user_defined_type_name | is_insertable_into | YES is_typed | NO commit_action Regards Pavel Stehule > > If anybody find it good please report it in my mail ID. > > Your reply is highly soli

[BUGS] psql command line variables are unknown when -c SQL statement are executed

2009-11-16 Thread Pavel Stehule
ave process external variables first and then execute query. Regards Pavel Stehule -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

Re: [BUGS] psql command line variables are unknown when -c SQL statement are executed

2009-11-16 Thread Pavel Stehule
2009/11/16 Peter Eisentraut : > On mån, 2009-11-16 at 10:19 +0100, Pavel Stehule wrote: >> wrong: >> >> pa...@nemesis ~]$ psql postgres -v x=10 -c "select :x" >> ERROR:  syntax error at or near ":" >> LINE 1: select :x >>                

Re: [BUGS] psql command line variables are unknown when -c SQL statement are executed

2009-11-18 Thread Pavel Stehule
2009/11/18 Peter Eisentraut : > On mån, 2009-11-16 at 12:28 +0100, Pavel Stehule wrote: >> 2009/11/16 Peter Eisentraut : >> > On mån, 2009-11-16 at 10:19 +0100, Pavel Stehule wrote: >> >> wrong: >> >> >> >> pa...@nemesis ~]$ psql postgres -

Re: [BUGS] Stored procedure error

2009-11-19 Thread Pavel Stehule
/Automatic_execution_plan_caching_in_PL/pgSQL Regards Pavel Stehule p.s. this isn't bug - please use pg_general mailing_list 2009/11/19 Valaki Valahol : > Dear Sirs, > > My name is Zoltán Ötvös and I'm from Hungary. > Im using PostgreSQL database server from many years and I'm very satisfied &g

Re: [BUGS] BUG #5218: Easy strategic feature requests

2009-11-30 Thread Pavel Stehule
x-MySQL people will be happy with SHOW support, then they will be dissatisfied for PostgreSQL user's rights. p.s. super hook should be useful not only for mysql's statement regards pavel > ...Robert > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) &g

Re: [BUGS] BUG #5218: Easy strategic feature requests

2009-11-30 Thread Pavel Stehule
2009/11/30 Robert Haas : > On Mon, Nov 30, 2009 at 12:28 PM, Pavel Stehule > wrote: >>> >>> Rather than trying to be compatible with MySQL directly, I think we >>> might be better off adding a chapter to our documentation explaining >>> to ex-MySQL

Re: [BUGS] BUG #5218: Easy strategic feature requests

2009-11-30 Thread Pavel Stehule
2009/11/30 Tom Lane : > Pavel Stehule writes: >> I thing so ex-MySQL needs exact DESCRIBE, exact SHOW statement. It is >> some, what they used long time and then they missing it. > > You know, if they're not willing to make any adaptations, they're never > r

Re: [BUGS] BUG #5218: Easy strategic feature requests

2009-11-30 Thread Pavel Stehule
2009/11/30 Robert Haas : > On Mon, Nov 30, 2009 at 1:42 PM, Pavel Stehule > wrote: >> 2009/11/30 Tom Lane : >>> Pavel Stehule writes: >>>> I thing so ex-MySQL needs exact DESCRIBE, exact SHOW statement. It is >>>> some, what they used long time a

Re: [BUGS] BUG #5238: frequent signal 11 segfaults

2009-12-13 Thread Pavel Stehule
e a some hardware problems. Try to check your hardware, please. Minimum is memory test. Regards Pavel Stehule > Recently a new error appeared: > > Dec 13 03:46:55 goldbolt postgres[18628]: [15-1] > user=randir,db=lovehunter ERROR:  XX000: tuple offset out of range: 0 > Dec 13 03:46:5

Re: [BUGS] Substring auto trim

2010-01-13 Thread Pavel Stehule
s an alternative. > Fortunately this is all handled through Hibernate, and so for now I have > wrapped the substr command in rpad which seems to do the trick. > > Any light you can shed on this issue would be much appreciated. > Function substr has first parameter of type "t

Re: [BUGS] Substring auto trim

2010-01-13 Thread Pavel Stehule
2010/1/13 Pavel Stehule : > Hello > > 2010/1/13 Charles O'Farrell : >> Hi guys, >> >> I'm not sure whether this a really dumb question, but I'm curious as to what >> might be the problem. >> >> We have a column 'foo' which is

Re: [BUGS] BUG #5274: [PL/PgSQL] EXECUTE ... USING variable expansion

2010-01-14 Thread Pavel Stehule
se CREATE TABLE is DDL statement without plan, and without possibility to use a parameters. You have to do: EXECUTE 'SELECT * FROM ' || var1::regclass || ' WHERE col=10' -- var1::regclass is minimum protection against SQL injection EXECUTE 'CREATE TABLE '|| quote_ident(va

Re: [BUGS] BUG #5274: [PL/PgSQL] EXECUTE ... USING variable expansion

2010-01-14 Thread Pavel Stehule
2010/1/14 Vincenzo Romano : > 2010/1/14 Pavel Stehule : >> Hello >> >> it is not bug. >> >> DDL statements like CREATE TABLE, ALTER TABLE are doesn't support >> parametrisation - you cannot use a placeholder for parameter >> everywhere. So you

Re: [BUGS] BUG #5274: [PL/PgSQL] EXECUTE ... USING variable expansion

2010-01-14 Thread Pavel Stehule
> Pavel, > if it was a simple plain dynami statement, I could create it by string > concatenation, literal_ and ident_ quoting and so on. the situation isn't too simply like you see it. PostgreSQL supports composite and nested types. For this types you cannot use quote* functions. N

Re: [BUGS] BUG #5308: How to disable Case sensitivity on naming identifiers

2010-02-02 Thread Pavel Stehule
1: select * from foo; ^ postgres=# select * from Foo; ERROR: relation "foo" does not exist LINE 1: select * from Foo; ^ postgres=# select * from "Foo"; a --- (0 rows) Time: 1,277 ms you cannot change this behave. Just don't use doub

Re: [BUGS] BUG #5310: "NOT FOUND" throws "GetData to Procedure return failed." in stored functions

2010-02-03 Thread Pavel Stehule
sql; CREATE FUNCTION Time: 18,734 ms postgres=# select f(); ERROR: query returned no rows CONTEXT: PL/pgSQL function "f" line 1 at SQL statement postgres=# regards Pavel Stehule > > SELECT msg_id INTO v_nm FROM newmail WHERE memb_id=v_id; > > The only way to avoid the compl

Re: [BUGS] RETURNS TABLE returns NULL set when called by another RETURNS TABLE

2010-02-23 Thread Pavel Stehule
2010/2/24 Josh Berkus : > Pavel, all: > > Apparently if you use one returns table function to call a 2nd returns > table function, it returns a recordset which consists entirely of nulls. > > Here's the test case: > > create table srf_data ( id serial, cat int, val t

Re: [BUGS] RETURNS TABLE returns NULL set when called by another RETURNS TABLE

2010-02-23 Thread Pavel Stehule
xample as the reason we had > to change the behavior ... yes - I am very happy with this change. It is the biggest change in plpgsql over 10 years. Pavel > > --Josh Berkus > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes to your subscrip

Re: [BUGS] Bug in triggers

2010-03-09 Thread Pavel Stehule
because its actual rowtype is unspecified by the function text. > The implications for row-null handling aren't obvious though :-( > is it necessary definition there? This is defined well from context. regards Pavel Stehule >                        regards, tom lane > >

Re: [BUGS] bug language "plpgsql" already exists

2010-03-15 Thread Pavel Stehule
Hello it's not bug. You registered plpgsql inside template1 database. Regards Pavel Stehule 2010/3/16 beulah prasanthi : > hello > > I deleted existing DB and i created new DB > i am getting below error how can i resolve it can any one help please > > "langu

Re: [BUGS] text cast to bool bug

2010-03-18 Thread Pavel Stehule
Hello It works on my server. Do you have a some specific configuration? postgres=# select ('true'::text)::bool; bool -- t (1 row) I am checked 8.3, 8.4, 9.0. Regards Pavel Stehule 2010/3/18 Laczi József : > I think this is a funny bug: > > select ('TR

[BUGS] Bug in CREATE FUNCTION with character type

2010-04-12 Thread Pavel Golub
rcecode column returns 0, which is wrong. Who can ever imagine bpchar of length 0? :) (http://www.postgresql.org/docs/8.4/static/libpq-exec.html#LIBPQ-EXEC-SELECT-INFO) -- With best wishes, Pavel mailto:pa...@gf.microolap.com -- Sent via pgsql-bugs mailing list (pgsql

Re: [BUGS] BUG #5419: Default parameters in PLPGSQL functions skipping every other value in pgAdmin view

2010-04-13 Thread Pavel Stehule
Postgres. > > Am I doing something wrong, or is this really a bug? probably you use old pgAdmin without support DEFAULT values :(. Please, try to actualise your pgAdmin. Regards Pavel Stehule > > -- > Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) > To make changes

Re: [BUGS] Can you please let me know?

2010-04-14 Thread Pavel Stehule
roisagg THEN 'agg' WHEN p.proiswindow THEN 'window' WHEN p.prorettype = 'pg_catalog.trigger'::pg_catalog.regtype THEN 'trigger' ELSE 'normal' END as "Type" FROM pg_catalog.pg_proc p LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace

Re: [BUGS] Bug in CREATE FUNCTION with character type (CONFIRMED BUG)

2010-04-14 Thread Pavel Stehule
treated as unqualified CHAR without an explicit length, with the further > problem reported by Pavel of being treated as unlimited length instead of > equivalent to CHAR(1) as expected. In other words, it seems to be effectively > impossible to declare explicit lengths for RETURNS TABLE

Re: [BUGS] Bug in CREATE FUNCTION with character type (CONFIRMED BUG)

2010-04-14 Thread Pavel Stehule
onishment quotient. I think, so RETURNS TABLE can be modified for returning typmode without significant problems - this function is called in table context and I don't see any problematic use case. Pavel > >> I do think Pavel G. has a real bug with the char thing, though. > >

Re: [BUGS] Bug in CREATE FUNCTION with character type

2010-04-15 Thread Pavel Golub
Hello, Tom. You wrote: TL> Pavel Golub writes: >> Example: >> CREATE OR REPLACE FUNCTION test_char_function() >> RETURNS TABLE(id int, salesourcecode character) AS >> $BODY$ >> VALUES (1, 'one'), (2, 'two'), (3, 'three'); >&

Re: [BUGS] Bug in CREATE FUNCTION with character type (CONFIRMED BUG)

2010-04-15 Thread Pavel Stehule
2010/4/15 Tom Lane : > Pavel Stehule writes: >> I think, so RETURNS TABLE can be modified for returning typmode >> without significant problems - this function is called in table >> context and I don't see any problematic use case. > > RETURNS TABLE is just a short

[BUGS] BUG #5451: pg_restore doesn't close input .tar archive

2010-05-06 Thread Pavel Golub
The following bug has been logged online: Bug reference: 5451 Logged by: Pavel Golub Email address: pa...@microolap.com PostgreSQL version: 8.4.x Operating system: Windows Description:pg_restore doesn't close input .tar archive Details: pg_restore doesn&#x

Re: [BUGS] BUG #5451: pg_restore doesn't close input .tar archive

2010-05-06 Thread Pavel Golub
Hello, Tom. You wrote: TL> "Pavel Golub" writes: >> pg_restore doesn't close input .tar archive file after restore process. >> However, file is closed after pg_restore termination, I suppose it's not >> correct behaviour. TL> I'm not sure wha

Re: [BUGS] BUG #5451: pg_restore doesn't close input .tar archive

2010-05-10 Thread Pavel Golub
Hello, Tom. You wrote: TL> Pavel Golub writes: >> TL> I'm not sure what distinction you're trying to draw. Do you want us to >> TL> add a close() just before exit()? If so, what for? >> First of all, for uniformity I guess. :) .backup files are closed >

Re: [BUGS] BUG #3563: DATESTYLE feature suggestion

2010-05-15 Thread Pavel Stehule
ed datatype. Regards Pavel Stehule > > the following is from the ecmascript 5 specification at > http://www.ecmascript.org/docs/tc39-2009-043.pdf page 168: > >> 15.9.1.15 Date Time String Format >> ECMAScript defines a string interchange format for date-times based upon a

[BUGS] BUG #2570: Connection closed unexpectedly

2006-08-09 Thread Pavel Golub
The following bug has been logged online: Bug reference: 2570 Logged by: Pavel Golub Email address: [EMAIL PROTECTED] PostgreSQL version: 8.0.x Operating system: Windows XP Description:Connection closed unexpectedly Details: Bug may be reproduced by any tool using

[BUGS] BUG #2675: syntax error

2006-10-04 Thread Pavel Schon
The following bug has been logged online: Bug reference: 2675 Logged by: Pavel Schon Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.4 Operating system: Debian Sarge, Linux 2.6.17.11 SMP i686 GNU/Linux Description:syntax error Details: [local

[BUGS] User-defined type name begins with the underscore character (_) can be created

2006-12-12 Thread Pavel Golub
.1.0 8.2.0 -- With best wishes, Pavel mailto:[EMAIL PROTECTED] ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

[BUGS] BUG #2852: User-defined type name begins with the underscore character (_) can be created

2006-12-21 Thread Pavel Golub
The following bug has been logged online: Bug reference: 2852 Logged by: Pavel Golub Email address: [EMAIL PROTECTED] PostgreSQL version: 8.x Operating system: Windows XP Description:User-defined type name begins with the underscore character (_) can be created

Re: [BUGS] BUG #2852: User-defined type name begins with the

2006-12-24 Thread Pavel Golub
t;shouldn't" be used, rather than prohibited. BM> --- BM> Pavel Golub wrote: >> >> The following bug has been logged online: >> >> Bug reference: 2852 >> Logged by:

Re: [BUGS] BUG #2995: PSQLRestore crash and MemoryLeaks!

2007-02-13 Thread Pavel Golub
r will ignore your desire to B>choose an index scan if your joining column's datatypes do not B>match -- With best wishes, Pavel mailto:[EMAIL PROTECTED] ---(end of broadcast)--- TIP 6: explain analyze is your friend

[BUGS] BUG #3056: strange behave of CHECK constraint

2007-02-22 Thread Pavel Stehule
The following bug has been logged online: Bug reference: 3056 Logged by: Pavel Stehule Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3 Operating system: Linux Description:strange behave of CHECK constraint Details: Hello, check constraint doesn't

  1   2   3   >