[GENERAL] Possible Bug

2011-02-09 Thread Kaloyan Iliev Iliev
ve strange data (ARRAY from all columns), that I don't expect. Could you tell me if this is a bug or some feature I haven't heard of. Best regards, Kaloyan Iliev -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Postgresql and punycode(IDN)

2009-06-30 Thread Kaloyan Iliev
Hi I am looking for a way to convert a text field from a table into punycode (IDN). Are there any buildin functions in Postgres ot in plpgsql. Best regards, Kaloyan Iliev -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Problem with encoding conversions

2009-03-09 Thread Kaloyan Iliev
Sorry for the noise. The problem is solved with the restart of the postgresql server. Have a nice day. Kaloyan Iliev Kaloyan Iliev wrote: Hi All, I try to migrate a database from WIN1251 to UTF8 but I have a problem dumping from WIN1251 to UTF8. pg_dump -C -E 'UTF8' a > a_utf

[GENERAL] Problem with encoding conversions

2009-03-09 Thread Kaloyan Iliev
Hi All, I try to migrate a database from WIN1251 to UTF8 but I have a problem dumping from WIN1251 to UTF8. pg_dump -C -E 'UTF8' a > a_utf8.sql pg_dump: SQL command failed pg_dump: Error message from server: ERROR: could not load library "/usr/local/lib/postgresql/utf8_and_cyrillic.so": dlopen

Re: [GENERAL] Open Source CRM - Options?

2008-05-28 Thread Kaloyan Iliev
nd of profiling/personalisation, and would appreciate any pointers readers of this newsgroup might be able to offer. Hi, And what about RT (Request Tracker - http://bestpractical.com/rt/) . AFAIK it is free and open-source, uses Postgres and is easy to setup. Regards, Kaloyan Iliev Please reply

[GENERAL] I think this is a BUG?

2008-04-24 Thread Kaloyan Iliev
x27;::regclass) Indexes: "test_pkey" PRIMARY KEY, btree (id) r=# ALTER TABLE test ADD COLUMN not_null int NOT NULL; ERROR: column "not_null" contains null values My question is why didn't PG create the sequence and fill the values in the first example. And why create

Re: [GENERAL] Insert vs Update syntax

2008-02-29 Thread Kaloyan Iliev
execute it. INSERT INTO $table_name (key1, key2, key3) VALUES (value1, value2, value3); So I suggest you write such function and solve most of your problems:-) Regards,   Kaloyan Iliev   Clodoaldo wrote: 2008/2/29, Martijn van Oosterhout <[EMAIL PROTECTED]>: On Fri, Feb 29, 2

Re: [GENERAL] Obtaining random rows from a result set

2007-08-31 Thread Kaloyan Iliev
Hi, Why not generate a random number in your application and then: SELECT * FROM table_x WHERE condition = true OFFSET generated_random_number LIMIT xx Kaloyan Iliev Alban Hertroys wrote: Hello, I've recently been busy improving a query that yields a fixed number of random records mat

[GENERAL] NOTICE Acepted as Error After Upgrade

2007-07-26 Thread Kaloyan Iliev
accepted as error? I try to "set client_min_messages TO log" during runtime but this didn't help. I know this is more Perl problem but if someone could help because I didn't find anyting in the net. Thanks in advance. Kaloyan Iliev [EMAIL PROTECTED] perl use CLIB:

Re: [GENERAL] OFFSET and LIMIT - performance

2007-06-29 Thread Kaloyan Iliev
And what about using cursors and move. Which is faster - OFFSET/LIMIT OR CURSOR/MOVE. Best Regards, Kaloyan Iliev Tom Lane wrote: "Jan Bilek" <[EMAIL PROTECTED]> writes: I'm using PGDB with JDBC. In my app i need to select only portion of all = available rows. I

Re: [GENERAL] Bad performace of a query

2007-03-01 Thread Kaloyan Iliev
n on raizpaises) and the index scan on libros. I suggest you to create index on table isbns_a_descubrir over column isbn. This will hurry the query. And use join instead of IN for table raizpaises. This should also save some time. Regards,    Kaloyan Iliev ave this query: SELECT DISTINCT isbn, CU

Re: [GENERAL] Bad performace of a query

2007-03-01 Thread Kaloyan Iliev
raizpaises) and the index scan on libros. I suggest you to create index on table isbns_a_descubrir over column isbn. This will hurry the query. And use join instead of IN for table raizpaises. This should also save some time. Regards,    Kaloyan Iliev ave this query: SELECT DISTINCT isbn, CURRE

Re: [GENERAL] Bad performace of a query

2007-02-28 Thread Kaloyan Iliev
n on raizpaises) and the index scan on libros. I suggest you to create index on table isbns_a_descubrir over column isbn. This will hurry the query. And use join instead of IN for table raizpaises. This should also save some time. Regards,    Kaloyan Iliev ave this query: SELEC

[GENERAL] Float Infinity

2006-12-19 Thread Kaloyan Iliev
Hi All, I just want to ask shouldn't substraction from infinity returns infinity in float just like in timestamp? This is for float: a=# SELECT version(); version ---

Re: [GENERAL] Float8 precision problem

2006-11-30 Thread Kaloyan Iliev
Hi, What about cast to numeric? select 6.1::numeric-6::numeric ; ?column? -- 0.1 (1 row) Regards, Kaloyan Iliev Hengki Suhartoyo wrote: Hi all, I got problem in postgrsql 8.0 when subtraction in float8, this is my query : select 6.1::float8-6::float8 Result

[GENERAL] Deadlock when one process opens two separate connections?

2006-09-26 Thread Kaloyan Iliev
version PostgreSQL 8.1.4 on i386-portbld-freebsd6.1, compiled by GCC cc (GCC) 3.4.4 [FreeBSD] 20050518 Kaloyan Iliev ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?

Re: [GENERAL] Saving a jpg into Postgresql table

2006-08-25 Thread Kaloyan Iliev
that: I transform the jpeg to Base64 text and then store it into normal text field. It takes aproximately 25-30% more disk space but is much easier for me to operate with it. When I read the object from the database I decode it and I have the file in the original format. Regards, Kaloyan Iliev

[GENERAL] COMMENT and inheritance

2006-04-17 Thread Kaloyan Iliev
blank columns really makes me trouble. Thanks for the answers in advance. Kaloyan Iliev ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] installing and using autodoc

2006-04-11 Thread Kaloyan Iliev
Configure ./configure 5. Run make make 5.1. Make SU and become root 6. Run make install This is the usual procedure, but for best result always read the README file or INSTALL file first. Regards, Kaloyan Iliev [EMAIL PROTECTED] wrote: Hi, I'm interested in

Re: [GENERAL] how to document database

2006-04-08 Thread Kaloyan Iliev
HTML documentation the comments are there. That's it. I am sorry if this doesn't help you much. Have a nice day, Kaloyan Iliev Ottavio Campana wrote: Kaloyan Iliev wrote: Hi, I'm using postgresql_autodoc. It is perfect for me. And if you have comments in the database the

Re: [GENERAL] One Sequence for all tables or one Sequence for each

2005-06-02 Thread Kaloyan Iliev Iliev
have many sequences (one for each table PK) every insert in a different table will use different sequence and this will improve performance. Kaloyan Iliev Janning Vygen wrote: Hi, if you define a SERIAL column postgresql's default is to generate a sequence for each SERIAL c

Re: [GENERAL] Newbie question

2005-05-18 Thread Kaloyan Iliev Iliev
Hi Hugo, Yes, it is possible. Just write an outer perl script(in example), which to call this stored procedure. Then put in the cron to call whis perl script. As Far As I Know there isn't other way. Kaloyan Iliev Hugo wrote: hi, is it possible to schedule the execution of an sql s

Re: [GENERAL] Hash problem

2005-03-12 Thread Kaloyan Iliev Iliev
Hi Madison, When you migrate from PG7.2 to PG7.4 didn't you change the Perl too. When we migrate the PG, we also change the OS verison and the Perl and etc. So this may be Perl migration error. We have some in our own scripts (from the same type you posted). As Ian says, you should check the Pe

Re: [GENERAL] Where is the error

2004-12-27 Thread Kaloyan Iliev Iliev
es. Thank in advance:) Kaloyan John DeSoi wrote: On Dec 27, 2004, at 6:42 AM, Kaloyan Iliev Iliev wrote: CREATE OR REPLACE FUNCTION "int" (boolean) RETURNS integer AS' select CASE WHEN $1 THEN 1 ELSE 0 END 'LANGUAGE 'sql'; The problem is that you have quoted the function name a

Re: [GENERAL] Where is the error

2004-12-27 Thread Kaloyan Iliev Iliev
form where I dumped) everithing was OK:) Kaloyan Kaloyan Iliev Iliev wrote: Hi I have the following function: CREATE OR REPLACE FUNCTION "int" (boolean) RETURNS integer AS' select CASE WHEN $1 THEN 1 ELSE 0 END 'LANGUAGE 'sql'; When I try to use it: select int(&#x

Re: [GENERAL] Where is the error

2004-12-27 Thread Kaloyan Iliev Iliev
10x John, You are right.The problem is that the function was dumped with quotes from pg_dump but I suppose the one who created it used quotes and that's why it dumps in this way. I will fix this in the dump. Thanks again. Kaloyan John DeSoi wrote: On Dec 27, 2004, at 6:42 AM, Kaloyan

[GENERAL] Where is the error

2004-12-27 Thread Kaloyan Iliev Iliev
Hi I have the following function: CREATE OR REPLACE FUNCTION "int" (boolean) RETURNS integer AS' select CASE WHEN $1 THEN 1 ELSE 0 END 'LANGUAGE 'sql'; When I try to use it: select int('t'::bool); ERROR: syntax error at or near "(" at character 11 I am using PG8.0b1 Thank you. Kaloyan -

Re: [GENERAL] Problems with pg_restore

2004-12-21 Thread Kaloyan Iliev Iliev
hanks. Kaloyan Tom Lane wrote: Kaloyan Iliev Iliev <[EMAIL PROTECTED]> writes: But as I say the file with copy commands contains [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@COPY &qu

Re: [GENERAL] Problems with pg_restore

2004-12-20 Thread Kaloyan Iliev Iliev
cking_base* add deleted bool; Kaloyan Tom Lane wrote: Kaloyan Iliev Iliev <[EMAIL PROTECTED]> writes: You are right. I coleage of mine has added the delete column after the schema was created and it ptobably was on the bottom of the table and dumped there. But now when I restore the schema t

Re: [GENERAL] Problems with pg_restore

2004-12-20 Thread Kaloyan Iliev Iliev
file on hand. To remove the column from the tracking_base table, and to add it manuly on the bottem of each table that inherits it. This should work. Thanks again. Kaloyan Tom Lane wrote: Kaloyan Iliev Iliev <[EMAIL PROTECTED]> writes: [ details omitted ] The easiest way around

[GENERAL] Problems with pg_restore

2004-12-20 Thread Kaloyan Iliev Iliev
Hi , I have the following problem. DBVersion: PostgreSQL 7.2.3 on i386-pc-bsdi4.0.1, compiled by GCC 2.7.2.1 I have a dump of a database on two parts. Here are the dump commands: pg_dump -s -S postgres "db_name" |gzip > "db_name.shema.sql" pg_dump -S postgres -a -Fc "db_name" > "db_name.data.dump

Re: [GENERAL] Fwd: Problem installing Postgresql on MDK10.0

2004-11-17 Thread Kaloyan Iliev Iliev
Hi, I have the same problem and I solved it. This question then was asked and I answer it. Try looking at the google and you will find it. In general - Open the package manager and searche for keyword "redline". The neccessary library will apper and you just will have to install it. Regards, K

Re: [GENERAL] Migrating between versions. Problem with regexp

2004-08-29 Thread Kaloyan Iliev Iliev
sequence So I understand that you can't adapt it to all languages and alphabets but in case this is an error and can be fixed I report it. Kaloyan Tom Lane wrote: Kaloyan Iliev Iliev <[EMAIL PROTECTED]> writes: libvar=# select '\\a\\à\\à\\.' ~ '\\a\\à\\à\\.'; E

Re: [GENERAL] Migrating between versions. Problem with regexp

2004-08-29 Thread Kaloyan Iliev Iliev
Thank you Kaloyan Tom Lane wrote: Kaloyan Iliev Iliev <[EMAIL PROTECTED]> writes: libvar=# select '\\a\\à\\à\\.' ~ '\\a\\à\\à\\.'; ERROR: invalid regular expression: invalid escape \ sequence 7.4 and later are stricter about the use of \ than

[GENERAL] Migrating between versions. Problem with regexp

2004-08-29 Thread Kaloyan Iliev Iliev
Dear friends, I have the following problem. libvar=# select version(); version PostgreSQL 7.2.3 on i386-pc-bsdi4.0.1, compiled by GCC 2.7.2.1 (1 row) libvar=# select '\\a\\à\\à\\

Re: [GENERAL] Listing views

2004-08-10 Thread Kaloyan Iliev Iliev
Hi, What about mydb=# \dv ?? Doesn't it works fine. I don't see any pg views. Regards, Kaloyan Olivier Guilyardi wrote: Hi, I'm trying to list views, eliminating internal ones from the output. Using 7.2, I found this simple statement : SELECT viewname FROM pg_views WHERE viewname !~ '^pg_'; It