[BUGS] BUG #3799: csvlog skips some logs

2007-12-05 Thread depesz
The following bug has been logged online: Bug reference: 3799 Logged by: depesz Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3 HEAD Operating system: linux, 32bit Description:csvlog skips some logs Details: when settings are set to: # select name, setting

Re: [BUGS] BUG #4320: Describe table on 8.2.9 server fail

2008-07-22 Thread hubert depesz lubaczewski
now. But. Since you're using Ubuntu, you can install postgresql-client-8.2 package, and use psql from it. Best regards, depesz -- 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 #4422: select ... where ... NOT EXISTS / NOT IN

2008-09-17 Thread hubert depesz lubaczewski
ls-vs-not-in/ Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: [EMAIL PROTECTED] / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscr

Re: [BUGS] BUG #4438: regexpression gives the error by working with [

2008-09-27 Thread hubert depesz lubaczewski
matches('/a/b[534]', E'(.*)\\[([0-9]*)\\]'); regexp_matches {/a/b,534} (1 row) depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: [EMAIL PROTECTED] / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- S

[BUGS] ftp server symlink

2008-10-18 Thread hubert depesz lubaczewski
l.org:/pub> cd source/v8.2.10 cd ok, cwd=/pub/source/v8.2.10 Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: [EMAIL PROTECTED] / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgre

Re: [BUGS] Bug in pl/pgsql with hstore OR bug in pl/pgsql IF (text field is boolean?)

2008-10-27 Thread hubert depesz lubaczewski
rator does not exist: hstore -> boolean LINE 1: select tconvert('a', 'b')->'a' is null; ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. ([EMAIL PROTECTED]:5840) 15:14:03

Re: [BUGS] BUG #4525: substring with this pattern works in 8.3.1; does not work in 8.3.4

2008-11-12 Thread hubert depesz lubaczewski
ange the regexpin substring to: '^[0-9]{10}(?:,[0-9]{10})*$' 2. change check to: CHECK ((public_phone ~ '^([0-9]{10}(,[0-9]{10})*)?$'))); choose whichever you prefer. Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gt

Re: [BUGS] BUG #4642: EXECUTE work incorrect

2009-02-05 Thread hubert depesz lubaczewski
On Thu, Feb 05, 2009 at 12:11:51PM +, Eduard Deacoon wrote: > WHERE '' || QUOTE_IDENT($3) || '' = '' || > $4||''::TEXT'' || make it: WHERE '' || QUOTE_IDENT($3) || '' = '' || quote_literal($4)||'&#

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

2009-02-10 Thread hubert depesz lubaczewski
On Tue, Feb 10, 2009 at 01:04:02AM +0100, Daniel Migowski wrote: > SELECT y(); -- fails with: when you return set, you should use: select * from y(); select function() is additional feature of sql functions. depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.

[BUGS] docs building problem

2009-04-15 Thread hubert depesz lubaczewski
t;, "CAUTION", "IMPORTANT", "NOTE", "TIP", "WARNING", "BLOCKQUOTE", "INFORMALEXAMPLE" start-tag openjade:libpq.sgml:310:19:E: end tag for "PARA" omitted, but OMITTAG NO was specified openjade:libpq.sgml:254:10: star

Re: [BUGS] Scripting issue

2009-04-20 Thread hubert depesz lubaczewski
ive/libpq-pgpass.html Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to yo

[BUGS] distinct on doesn't fail without order by? why?

2009-05-18 Thread hubert depesz lubaczewski
elect distinct on (x) x, y from test; x | y ---+--- 1 | 2 2 | 3 (2 rows) # select * from test; x | y ---+--- 1 | 2 2 | 3 1 | 4 (3 rows) Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depes

Re: [BUGS] BUG #4816: NOT IN clause, doesn't work

2009-05-20 Thread hubert depesz lubaczewski
On Wed, May 20, 2009 at 09:37:56AM +, jose soares wrote: > I'm trying a NOT IN clause, but seems it doesn't work. Please take a look: the problem you're experiencing is described in here: http://www.depesz.com/index.php/2008/08/13/nulls-vs-not-in/ Best regards, depesz

Re: [BUGS] Postgres

2009-06-10 Thread hubert depesz lubaczewski
On Wed, Jun 10, 2009 at 12:38:14PM +0200, Andreas Mutota wrote: > I could create database and tables but I cannot populate data into any of > the tables. what do you mean by "cannot populate"? what commands are you using? what are the error messages? Best regards, depesz --

[BUGS] unhelpful error message

2009-06-18 Thread hubert depesz lubaczewski
ure if it this (rather obscure) functionality is really worth the trouble. Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007 -- Sent via pgsql-bugs mailing list (pgsq

Re: [BUGS] unhelpful error message

2009-06-18 Thread hubert depesz lubaczewski
On Thu, Jun 18, 2009 at 10:03:21AM -0400, Tom Lane wrote: > hubert depesz lubaczewski writes: > > # create table sold_products (items int4, product_id int4); > > # create table products (id int4, codename text); > > # select sp.count, p.codename from sold_products

[BUGS] misleading error message in 8.5, and bad (?) way deferred uniqueness works

2009-08-11 Thread hubert depesz lubaczewski
y it works: # INSERT INTO test (i) values (1), (2), (3); INSERT 0 3 # update test set i = i + 1; UPDATE 3 shouldn't it raise exception? and work *only* if i set the constraint to deferred? depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk:

[BUGS] Bad interval conversion?

2009-08-18 Thread hubert depesz lubaczewski
Hi, tried on latest 8.5, and some 8.3: # select '4817191.623 ms'::interval; interval -- -00:35:47.483648 (1 row) I am pretty sure the answer is wrong. But why? depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/

Re: [BUGS] BUG #5004: pg_freespacemap make a SegFault

2009-08-22 Thread hubert depesz lubaczewski
ossibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and repeat your command. STATEMENT: vacuum if yes - how many vacuum jobs there were? depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@d

[BUGS] shouldn't "create unique index concurrently on x (i)" raise error?

2009-09-17 Thread hubert depesz lubaczewski
well, the question is in subject. basically - shouldn't this command raise error instead of creating index named "concurrently"? depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_h

[BUGS] Weird behaviour of = ANY ( SUBQUERY ) ?

2009-09-30 Thread hubert depesz lubaczewski
t type(s). You might need to add explicit type casts. direct usage of array of course works: # select 1 = any ( '{1,2}'::int4[] ); ?column? -- t (1 row) depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / ai

[BUGS] Error in exclusion constraint error message (8.5)?

2010-01-02 Thread hubert depesz lubaczewski
t('epoch'::text, timezone('UTC'::text, to_ts)=((1232078399,1232078399),(1231387200,1231387200)). Please not that both box values are the same, and relate to row: ( '2009-01-08 00:00:00 EST', '2009-01-15 23:59:59 EST' ) while I would assume that one

[BUGS] strange bug with vacuum

2002-02-01 Thread hubert depesz lubaczewski
lyze every 5000 inserts) does modify this behaviour to much more reasonable. is this something we are missing or another bug in postgresql? the selects and inserts are made through plpgsql function (single call select function(args) does select and insert), but i doubt if this matters. depesz

[BUGS] problems with non-trust authentication methods in 7.3devel?

2002-04-24 Thread Hubert depesz Lubaczewski
nt record is at 0/5A5508 LOG: redo record is at 0/5A5508; undo record is at 0/0; shutdown TRUE LOG: next transaction id: 180; next oid: 16844 LOG: database system is ready FATAL: Bad abstime external representation '"depesz' FATAL: Password authentication failed for user "pgd

[BUGS] create index concurrently blocks on transactions in other databases

2007-09-06 Thread hubert depesz lubaczewski
be neccessary - i understand that we need to wait for transactions in the same db, but waiting for transaction in another database? i tested it on 8.2.4 and 8.3devel from cvs-head, fetched 3 days ago. depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly pai

[BUGS] partially effective revoke on pg_catalog

2007-09-10 Thread hubert depesz lubaczewski
user depesz is superuser. i connect to depesz database, and: ([EMAIL PROTECTED]:5830) 14:20:34 [depesz] # revoke usage on schema pg_catalog from public; REVOKE now, i reconnect to the same database with test user (which is not superuser): ([EMAIL PROTECTED]:5830) 14:23:55 [depesz] > \d ER

Re: [BUGS] partially effective revoke on pg_catalog

2007-09-10 Thread hubert depesz lubaczewski
On Mon, Sep 10, 2007 at 10:38:34AM -0400, Tom Lane wrote: > hubert depesz lubaczewski <[EMAIL PROTECTED]> writes: > > # revoke usage on schema pg_catalog from public; > > REVOKE > This is not a supported operation. ok, but i belive it should either dont allow admin to do

Re: [BUGS] partially effective revoke on pg_catalog

2007-09-10 Thread hubert depesz lubaczewski
n no position to ask to give the ability to revoke the privileges. all i'm asking is to put some consistency - either break it, or forbid. but dont say "revoked" when it's not really true. depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly p

[BUGS] autovacuum starting for no apparent reason

2007-09-17 Thread hubert depesz lubaczewski
autovacuum process, a couple of minutes later it restarted! still nothing in logs. any ideas? unfortunatelly i can't do much as this is production server, but perhaps it will "ring the bell" and somebody will know what to fix. depesz -- quicksil1er: "postgres is excellent

Re: [BUGS] autovacuum starting for no apparent reason

2007-09-17 Thread hubert depesz lubaczewski
sorry to bother you. problem has been found, it's the (default, too low) value of autovacuum_freeze_max_age. depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly paid DBA. here's my CV!" :) http://www.depesz.com/ - blog d

[BUGS] why "alter table" to change owner of sequence?

2007-12-10 Thread hubert depesz lubaczewski
| Owner +--+--+ public | x| sequence | depesz (1 row) # alter sequence x owner to pgdba; ERROR: syntax error at or near "owner" LINE 1: alter sequence x owner to pgdba; ^ # alter table x owner to pgdba; ALTER TABLE # \d List of relations Sc

Re: [BUGS] BUG #3811: Getting multiple values from a sequence generator

2007-12-10 Thread hubert depesz lubaczewski
On Sun, Dec 09, 2007 at 03:32:17PM +, Simon Riggs wrote: > ALTER SEQUENCE blah INCREMENT BY val; this has the sideeffect that all concurrent nextvals() will also increment by val, which is not always acceptable. depesz -- quicksil1er: "postgres is excellent, but like any DB it re

[BUGS] bad message or bad privilege check in foreign key constraint

2008-01-22 Thread hubert depesz lubaczewski
not obvious for everybody, so maybe the message should be cleared a bit in this case. on the other hand - i'm not really sure that update rights should be neccessary in such case. best regards, depesz -- quicksil1er: "postgres is excellent, but like any DB

Re: [BUGS] BUG #4220: delete statement deleted too many rows

2008-06-04 Thread hubert depesz lubaczewski
p/2007/09/06/postgresql-gotchas/ anyway - it's definitely not a bug. depesz -- 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 #4220: delete statement deleted too many rows

2008-06-05 Thread hubert depesz lubaczewski
update-account-set-password-new_password-oops/ Best regards, depesz -- 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 #4224: issue with LIMIT and ORDER BY

2008-06-05 Thread hubert depesz lubaczewski
t_id 2. have a lot of rows in this table 3. very little rows have given merchant_id you can easily fix the situation with: create index q on clients (merchant_id, id); depesz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

[BUGS] current cvs doesn't compile

2002-09-28 Thread Hubert depesz Lubaczewski
9.6c-3 automake-1.6.3-1 autoconf-2.53a-1 cpp-2.95.4-0.20010823.3 libtool-1.4.2-11 do you have any idea on what is wrong? depesz -- hubert depesz lubaczewski http://www.depesz.pl/ -

[BUGS] dropping user doesn't erase his rights.

2003-01-09 Thread Hubert depesz Lubaczewski
xx to test; select relacl from pg_class where relname='czasy'; drop user test; select relacl from pg_class where relname='czasy'; right now it's not even possible to revoke this rights: # revoke all on xxx from test; ERROR: user "test" does not exist [[loca

Re: [BUGS] dropping user doesn't erase his rights.

2003-01-09 Thread Hubert depesz Lubaczewski
x27;m not sure if i'm clear about it. depesz -- hubert depesz lubaczewski http://www.depesz.pl/ > wynajmę mieszkanie - 60 metrów, 3 pokoje, piastów - od lutego (po < -=> remoncie) interesuje cię - napisz: [EMAIL PROTECTED]<=- msg05634/pgp0.pgp Description: PGP signature

[BUGS] misleading error message

2003-01-23 Thread Hubert depesz Lubaczewski
error message is totally misleading. can this be improved somehow? i'm using 7.4devel from cvs. depesz -- hubert depesz lubaczewski http://www.depesz.pl/ > wynajmę mieszkanie - 60 metrów, 3 pokoje, piastów - od lutego (po < -=> remoncie) interesuje

[BUGS] recent (just got from cvs) build doesn't run nicely

2003-01-27 Thread Hubert depesz Lubaczewski
unlimited row size for system tables... ok initializing pg_depend... /home/pgdba/work/bin/initdb: line 716: 26438 Segmentation fault "$PGPATH"/postgres $PGSQL_OPT template1 >/dev/null < do you have any idea on what is wrong? depesz -- hubert depesz lubaczewski

[BUGS] psql -F problems

2003-02-22 Thread Hubert depesz Lubaczewski
rated by literally '\t', and not by tab-space character. yet, entering the same in psql as \f '\t' works great. i belive this is just simple ommision in argument parsing, but i belive it should be corrected to maintain uniform way of communication with user. best regards h

Re: [BUGS] psql -F problems

2003-03-03 Thread Hubert depesz Lubaczewski
e that allowing \t in psql and not allowing \t from commandline is bug and should be fixed. depesz -- hubert depesz lubaczewski http://www.depesz.pl/ i choose to hate people when they're not polite; bruise me; that's allright.

Re: [BUGS] psql -F problems

2003-03-03 Thread Hubert depesz Lubaczewski
can even do: psql -c "something" -F "something_weird" | sed 's/something_weird/ /g' yet - this is inconsistency - between different methods of setting particular parameter. depesz -- hubert depesz lubaczewski http://www.depesz.pl/ i choose

Re: [BUGS] BUG #5616: psql Doesn't Change Log files on \c

2010-08-13 Thread hubert depesz lubaczewski
file. (Aside from the cost, this > would greatly increase the race condition hazards from concurrent psql > sessions trying to write the file at the same time.) I think it would be enough to track previous and current database name, and re-do the history code on change. depesz -- Linkedin:

Re: [BUGS] BUG #5714: TZ pattern error on to_timestamp

2010-10-17 Thread hubert depesz lubaczewski
t; > I don't know what changed in your installation, but it wasn't this. Any reason why Pg can't parse TZ? perhaps it should be also listed in http://www.postgresql.org/docs/current/interactive/functions-formatting.html doc, that you can't use TZ (and some other patterns too

Re: [BUGS] BUG #5774: VACCUM & REINDEX kills production environement

2010-11-28 Thread hubert depesz lubaczewski
or reindex - if you *really* need it (are you sure? what makes you think you need it), then there are ways to do reindex without actually using "reindex" command, which are mostly transparent for users, but you should check if you really need to run reindex at all. Best rega

Re: [BUGS] BUG #5850: UPDATE statement fails when using aliases

2011-01-26 Thread hubert depesz lubaczewski
x27;t use alias on the left side in assignment. proper query: update foos as t set foo_text = ''; this works even if you join another table that has foo_text column, as update knows which table you're updating. Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depes

Re: [BUGS] BUG #5852: Function date_trunc is not IMMUTABLE

2011-01-27 Thread hubert depesz lubaczewski
Function date_trunc is not IMMUTABLE > Details: > > Please mark function date_trunc as IMMUTABLE for using in index. it cannot be immutable. please check explanation in here: http://www.depesz.com/index.php/2010/09/09/why-is-my-index-not-being-used/ search for "immutable&quo

Re: [BUGS] BUG #5877: problem with wild char used in where clause

2011-02-10 Thread hubert depesz lubaczewski
char(x) datatype? if yes - please read: http://www.depesz.com/index.php/2010/03/02/charx-vs-varcharx-vs-varchar-vs-text/ Best regards, depesz -- Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/ jid/gtalk: dep...@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:67490

[BUGS] Cannot create collation?

2011-03-02 Thread hubert depesz lubaczewski
ould not create locale "fr_FR.UTF-8": Success What is wrong in here? In shell, I can do: LC_COLLATE=fr_FR.UTF-8 sort /tmp/french and it works as expected. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it.

Re: [BUGS] Cannot create collation?

2011-03-02 Thread hubert depesz lubaczewski
On Wed, Mar 02, 2011 at 01:58:02PM +0100, hubert depesz lubaczewski wrote: > $ select * from test3 order by x; > ERROR: could not create locale "fr_FR.UTF-8": Success > What is wrong in here? never mind. sort looked like ok, but in fact apparently was't, and after add

Re: [BUGS] Cannot create collation?

2011-03-02 Thread hubert depesz lubaczewski
On Wed, Mar 02, 2011 at 06:00:45PM +0200, Heikki Linnakangas wrote: > On 02.03.2011 14:58, hubert depesz lubaczewski wrote: > >When I try to create french collation, it seems to work, but fails soon: > > > >$ CREATE COLLATION french (LOCALE = 'fr_FR.UTF-8'

Re: [BUGS] BUG #5967: Db maintainace

2011-04-07 Thread hubert depesz lubaczewski
as a bug. Second of all - did you read this part of documentation: http://www.postgresql.org/docs/8.3/interactive/maintenance.html Best regards, depesz -- 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 #5967: Db maintainace

2011-04-07 Thread hubert depesz lubaczewski
On Thu, Apr 07, 2011 at 06:50:16PM +0530, Halli, Savita wrote: > Hi Depesz > > I understand that this is not a bug but I was not aware of any other way to > get the information so I reported here. http://www.postgresql.org/ click on "community" click on "mailing list

[BUGS] 9.1 doesn't start when died mid-backup

2011-04-13 Thread hubert depesz lubaczewski
- 0/220 (1 row) $ create database pgdba; CREATE DATABASE $ create user postgres with superuser; CREATE ROLE $ create user depesz with superuser; CREATE ROLE $ create database depesz with owner depesz; CREATE DATABASE Afterwards, I exited psql, and simulated power-failure,

Re: [BUGS] BUG #6001: date_trunc is not timezone aware

2011-05-02 Thread hubert depesz lubaczewski
5-02 02:00:00+05'::timestamptz; timestamptz 2011-05-02 02:00:00+05 (1 row) $ SELECT date_trunc('day', '2011-05-02 02:00:00+05'::timestamptz); date_trunc 2011-05-02 00:00:00+05 (1 row) depesz -- The best thing

Re: [BUGS] BUG #6003: Cannot have a constraint foreign key on master class with inheritance

2011-05-03 Thread hubert depesz lubaczewski
ractive/ddl-inherit.html 5.8.1 Caveats Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make chan

Re: [BUGS] Changed behaviour of \'

2011-05-10 Thread hubert depesz lubaczewski
ibility with the SQL standard; >> escape_string_warning has produced warnings about this usage for years. E'' >> strings are the proper way to embed escapes in strings and are unaffected by >> this change. Best regards, depesz -- The best thing about

Re: [BUGS] BUG #6045: Compilation of contribs fail

2011-05-29 Thread hubert depesz lubaczewski
ces, and it looks like you're trying to do it. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgre

Re: [BUGS] BUG #6056: sorting issues

2011-06-14 Thread hubert depesz lubaczewski
lds for lastname and firstname, and not put them both in the same column. In Pg 9.1 you will be able to sort it the way you want using COLLATE support. with current situation, you can try to split every string using ", ", and sort splitted elements separately. Be

Re: [BUGS] BUG #6124: overlaps

2011-07-20 Thread hubert depesz lubaczewski
or the end can be written first; OVERLAPS automatically takes the earlier value of the pair as the start. Each time period is considered to represent the half-open interval start <= time < end, unless start and end are equal in which case it represents that single time instant. This means for

[BUGS] psql doesn't reuse -p after backend fail

2011-09-05 Thread hubert depesz lubaczewski
which is bad, because I explicitly specified the port to be 4329. before backend crash, \c works normally. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/

Re: [BUGS] psql doesn't reuse -p after backend fail

2011-09-06 Thread hubert depesz lubaczewski
at information separately, but I'm not sure > it's really worth the trouble. well, I think it's definitely worth the trouble. If I had datbaase standing at 5432, it would connect to it, and then I could mistakenly ran commands to wrong database. this is clearly not a good thing. depe

Re: [BUGS] psql doesn't reuse -p after backend fail

2011-09-06 Thread hubert depesz lubaczewski
On Tue, Sep 06, 2011 at 11:35:43AM -0400, Tom Lane wrote: > hubert depesz lubaczewski writes: > > On Mon, Sep 05, 2011 at 02:27:23PM -0400, Tom Lane wrote: > >> It's not just the port, it's all the connection parameters --- > >> do_connect relies on the PG

Re: [BUGS] BUG #6325: Useless Index updates

2011-12-04 Thread hubert depesz lubaczewski
first? http://www.depesz.com/index.php/2008/11/05/waiting-for-84-suppress_redundant_updates_trigger/ Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via pgsq

Re: [BUGS] BUG #6379: SQL Function Causes Back-end Crash

2012-01-04 Thread hubert depesz lubaczewski
erating system: OSX 10.6.8 > Description: > > CREATE OR REPLACE FUNCTION kill_backend() > RETURNS VOID > AS $$ > DROP TABLE if EXISTS foo; > CREATE TABLE foo AS SELECT * FROM pg_class LIMIT 1; > $$ LANGUAGE 'SQL'; Cannot replicate: (depesz@localhos

Re: [BUGS] BUG #6490: Not checking column existence in sub query

2012-02-27 Thread hubert depesz lubaczewski
ating system: Linux > Description: > > SELECT * FROM table1 where col1 in (select col2 from table2) > > if col2 exist in table1 and not exist in table2 there will be no error and > query output all rows from table1; sure. it is so called "correlated subquery" and

Re: [BUGS] BUG #6612: Functions can be called inside CHECK statements

2012-04-25 Thread hubert depesz lubaczewski
valid, making it mostly useless. I fail to see how's that a bug. Using functions in check has uses, and the fact that you don't suit your particular case (or you don't know how to make them suit your case) is not a bug in Pg. Best regards, depesz -- The best thing about modern

Re: [BUGS] BUG #6774: FOR IN SELECT LOOP ignores ORDER BY

2012-07-27 Thread hubert depesz lubaczewski
y *variable datname*". - which is null. change the select to: select d.* from pg_database d order by d.datname and now there is no more problem - because you're no longer using ambiguous identifier. Also, check this: http://www.depesz.com/2009/12/16/waiting-for-8-5-plpgsql-variable-resolu

[BUGS] Bug when changing datatype of primary key column

2012-08-11 Thread hubert depesz lubaczewski
relation with OID 16503 looks like some missing dependancy. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ - Sent via pgsql-bugs mailing list (pgsql-bugs

Re: [BUGS] BUG #7657: Create Table doesn't create columns

2012-11-13 Thread hubert depesz lubaczewski
it also doesn't generate > any errors so everything looks fine until I try to write to the table. Any > ideas as to why this wouldn't work or how to make a table with the given > columns? most likely you did insert like: insert into mod_1237 (Collecteddepth) values (...) i.e. you didn

Re: [BUGS] BUG #7657: Create Table doesn't create columns

2012-11-14 Thread hubert depesz lubaczewski
On Wed, Nov 14, 2012 at 10:00:08AM -0600, Matthew Kuss wrote: > Depesz - > > I'm fairly sure it's not a problem with something I'm doing wrong > because I've used the same code before. It has to be something wrong > on the DB side. But just to e

Re: [BUGS] BUG #7836: COPY command does not honor 'FORMAT' option

2013-01-29 Thread hubert depesz lubaczewski
On Tue, Jan 29, 2013 at 06:20:05PM +, kurt.l...@cello.com wrote: > template1=# copy pg_aggregate to '/tmp/agg.bin' with format binary; correct syntax: copy pg_aggregate to '/tmp/agg.bin' with (format 'binary'); Best regards, depesz -- The best thing about

[BUGS] ERROR: syntax error in tsquery - for high-unicode whitespace

2013-03-14 Thread hubert depesz lubaczewski
x80\x86a'); to_tsvector - (1 row) and for larger example: $ select to_tsvector('english', E'depesz\xe2\x80\x86whatever'); to_tsvector --- 'depesz':1 'whatev':2 (1 row) $ select to_tsquery('eng

Re: [BUGS] ERROR: syntax error in tsquery - for high-unicode whitespace

2013-03-15 Thread hubert depesz lubaczewski
On Thu, Mar 14, 2013 at 11:56:19PM -0400, Tom Lane wrote: > hubert depesz lubaczewski writes: > > $ select to_tsquery('english', E'a\xe2\x80\x86a'); > > ERROR: syntax error in tsquery: "a a" > > > the 3-byte utf8 character is SIX-PER-EM SP

Re: [BUGS] Strange time zone +00:53:28

2013-05-10 Thread hubert depesz lubaczewski
ZoneEurope/Berlin 0:53:28 - LMT 1893 Apr 1:00C-Eur CE%sT 1945 May 24 2:00 1:00 SovietZone CE%sT 1946 1:00Germany CE%sT 1980 1:00EU CE%sT Best regards, depe

[BUGS] pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases

2013-05-16 Thread hubert depesz lubaczewski
start pg with: 1. cd test/slave; pg_ctl -D . start or 2. pg_ctl -D /home/test/test/slave start only when Pg is started with relative path, and restarted with absolute, the problem shows. I know that it's probably not a big deal for most of the people, but it did bite me, so I'm reporting

Re: [BUGS] pg_ctl -D "/absolute/path" -m fast restart - doesn't work in some cases

2013-05-16 Thread hubert depesz lubaczewski
got exactly same result: =$ pg_ctl -D q -l logfile start server starting =$ cd q =$ pg_ctl -D $( pwd ) -m fast restart waiting for server to shut down done server stopped server starting postgres cannot access the server configuration file "/home/depesz/q/q/postgresql.conf": No s

Re: [BUGS] BUG #8183: field timestamp result to date

2013-05-28 Thread hubert depesz lubaczewski
. Please provide the command, what you're getting, and why you think it's a bug. Best regards, depesz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs

[BUGS] pg_statistics bloat after drop table

2013-05-30 Thread hubert depesz lubaczewski
-- 2 (1 row) I think that the additional row (with stainherit = true) should be deleted. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/ -- Sent via

Re: [BUGS] BUG #8226: Inconsistent unnesting of arrays

2013-06-12 Thread hubert depesz lubaczewski
'::text[]); Or, perhaps better, with this one: select unnest('{a,b,c,d,e,f}'::text[]), unnest('{1,2,3,4}'::text[]); It doesn't show 6 rows (as first array), or 4 (as the other). or 24 (6 * 4). It shows 12, because this is the smallest common multiple of 6 and 4. depe

Re: [BUGS] BUG #8226: Inconsistent unnesting of arrays

2013-06-12 Thread hubert depesz lubaczewski
d to unpack to join. you can do: select * from tablea join tableb on tableb.id = any (tablea.array_column); depesz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs