[GENERAL] Pg_catalog reference

2007-12-07 Thread Anton Nikiforov
ion in thi case? Any help appriciated. Thanks. Best regards, Anton Nikiforov ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Merry Christmas

2004-12-26 Thread Anton Nikiforov
Andreas Kretschmer wrote: begin "Raymond O'Donnell" <[EMAIL PROTECTED]> wrote: Happy Christmas from the west of Ireland! - Nollaig shona dÃobh. Happy Christmass and New Year from Russia -- Ð Ñ (Best regads), ÐÐÑÐÐ ÑÐÑÐÐ (Anton Nikiforov) smime.p7s Description:

[GENERAL] int to inet conversion

2005-12-03 Thread Anton Nikiforov
Dear All. is there any function that can translate INT to INET type? the table contains ip and mask in different fields (int fields): ip | integer | default 0 mask| integer | default -1 db=> select ip, mask from ips limit 2; ip | mask

Re: [GENERAL] int to inet conversion

2005-12-04 Thread Anton Nikiforov
Tom Lane wrote: Anton Nikiforov <[EMAIL PROTECTED]> writes: is there any function that can translate INT to INET type? Nothing built-in, and given the fact that "inet" no longer means "IPv4", it's unlikely we'd add one in the future. But there's not

Re: [GENERAL] int to inet conversion

2005-12-04 Thread Anton Nikiforov
Tom Lane wrote: Anton Nikiforov <[EMAIL PROTECTED]> writes: is there any function that can translate INT to INET type? Nothing built-in, and given the fact that "inet" no longer means "IPv4", it's unlikely we'd add one in the future. But there'

Re: [GENERAL] int to inet conversion

2005-12-04 Thread Anton Nikiforov
Martijn van Oosterhout wrote: On Sun, Dec 04, 2005 at 02:09:53PM +0300, Anton Nikiforov wrote: Sorry for my stupidity but, maybe there is a function that converts mask stored in int format to a numer of bits? ;) Your function easyly convert this mask to dot decimal notation, but how to count

Re: [GENERAL] int to inet conversion

2005-12-04 Thread Anton Nikiforov
Martijn van Oosterhout wrote: On Sun, Dec 04, 2005 at 03:21:47PM +0300, Anton Nikiforov wrote: Martijn van Oosterhout wrote: Let i be your input. Calculate t = -i. If i is in the right format, t will have exactly one bit set. Test this with t <> 0 and (t & i) == t If that'

[GENERAL] Hierarchical queries

2004-01-09 Thread Anton . Nikiforov
And the result i need: idparent data 6 2root's chield 2 chield 2 2 0root's chield 2 0 0root 1 0root's chield 1 4 1root's chield 1 chield 2 i know that it is possible in Oracle but what abo

Re: [GENERAL] Hierarchical queries

2004-01-10 Thread Anton . Nikiforov
red started point of the tree getting a full path to the required finish. Best regards, Anton Nikiforov. ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PRO

Re: [GENERAL] Hierarchical queries

2004-01-10 Thread Anton . Nikiforov
a >> 6 2root's chield 2 chield 2 >> 2 0root's chield 2 >> 0 0root >> 1 0root's chield 1 >> 4 1root's chield 1 chield 2 >> >> i k

Re: [GENERAL] Hierarchical queries

2004-01-10 Thread Anton . Nikiforov
chield 1 chield 1 >> >> 4 1root's chield 1 chield 2 >> >> 5 2root's chield 2 chield 1 >> >> 6 2 root's chield 2 chield 2 >> >> >> >> And i want to get something like this: >> &

Re: [GENERAL] Hierarchical queries

2004-01-11 Thread Anton . Nikiforov
Thanks Joe, But this function is not giving a path from one element to other, it is just truncating the tree beginning from the start element, but it is not rotating the whole tree making starting element a tree's root. JC> See contrib/tablefunc for a function called connectby(). Regards, Anton

[GENERAL] insertion with trigger failed unexpectedly

2004-01-11 Thread Anton . Nikiforov
Dear all, i have a problem with insertion data and running post insert trigger on it. Preambula: there is a table named raw: ipsrc | cidr ipdst | cidr bytes | bigint time | timestamp Triggers: daily_trigger AFTER INSERT OR UPDATE ON raw FOR EACH ROW EXECUTE PROCEDURE daily_func() and the

Re: [GENERAL] Hierarchical queries

2004-01-12 Thread Anton . Nikiforov
Thanks Graeme! MG> http://marc.theaimsgroup.com/?l=postgresql-sql&m=106739176106877&w=2 But this function is still returning only a subtree and in addition it have a bug when calling it like SELECT * FROM crawl_tree(0,0); You will always get ERROR: out of memory But this function is clear enough t

Re: [GENERAL] Hierarchical queries

2004-01-13 Thread Anton . Nikiforov
hield 2 ANlr> And i want to get something like this: ANlr> start point "root's chield 2 chield 2" ANlr> finish "root's chield 1 chield 1" ANlr> And the result i need: ANlr> idparent data ANlr> 6 2root's chield 2 chield 2 ANlr>

Re: [GENERAL] Postgress and MYSQL

2004-01-14 Thread Anton . Nikiforov
Hello Bob! Everybody knows that PostgreSQL is better than MySQL and supports more features etc. But remember - the main issue of database systems now is web that is being build mainly by students that do not even know what database engines are made for. At least here (My second job is Instructor in

[GENERAL] PL/Ruby

2004-02-06 Thread Anton Nikiforov
Dear sirs, Does someone made PL/Ruby working on 4.7.1? I tried alot of things. Manual install, port install and nothing happend. Please give me the idea how to fix the problem with plruby.c: In function `pl_tuple_put': plruby.c:498: error: too few arguments to function `tuplestore_begin_heap' plrub

[GENERAL] Huge number of raws

2004-03-18 Thread Anton Nikiforov
data? -- Best regads, Anton Nikiforov smime.p7s Description: S/MIME Cryptographic Signature

Re: [GENERAL] Huge number of raws

2004-03-18 Thread Anton Nikiforov
Anton Nikiforov пишет: Dear All! I have a question about how the PostgreSQL will manage a huge number of raws. I have a projet where each half an hour 10 millions of records will be added to the database and they should be calculated, summarized and managed. I'm planning to have a few se

Re: [GENERAL] Huge number of raws

2004-03-19 Thread Anton Nikiforov
Francisco Reyes ?: On Thu, 18 Mar 2004, Anton Nikiforov wrote: But i'm worry about mentioned centeral database that should store 240 millions of records daily and should collect this data for years. I have not worked with anything even remotely so big. A few thougths.. I think

Re: [GENERAL] Filesystem vs. Postgres for images

2004-04-13 Thread Anton Nikiforov
erformance. -- Best regads, Anton Nikiforov smime.p7s Description: S/MIME Cryptographic Signature

[GENERAL] Insert Or update

2004-04-23 Thread Anton Nikiforov
Dear All, I have a database which stores traffic data and to update the traffic for the particular IP i have to select this ip from the table for this period and if it is already in the database i should run an update statement, but if it is not presented - i should insert the data. It was OK w

Re: [GENERAL] PL/Ruby

2004-05-09 Thread Anton Nikiforov
Hello David, thanks, changing to Ruby18 solved my problem after some manual passages with woodoo around the computer :) Best regards, Anton Nikiforov David Garamond wrote: Anton Nikiforov wrote: Thanks, David, but i did try this way already and in the case i build plruby like this i have the

Re: [GENERAL] Partial index question

2004-04-29 Thread Anton Nikiforov
Paul Thomas пишет: On 29/04/2004 09:53 Anton Nikiforov wrote: looks like after a few tests that i've done i'm confused more than before. I did create a table and inserted 20 random records of two different types of data into it. Did you analyze the table afterwards? Hello and than

[GENERAL] Getting user who fired a trigger

2004-07-07 Thread Anton Nikiforov
me compact type for XML storing? (i know that i could pack it and store in zipped or other format, but i would like to have a search possibility); -- Best regads, Anton Nikiforov smime.p7s Description: S/MIME Cryptographic Signature

Re: [GENERAL] Getting user who fired a trigger

2004-07-07 Thread Anton Nikiforov
Thanks for the replay, Richard. Richard Huxton wrote: Anton Nikiforov wrote: Dear All, I have made a trigger procedure that logs all table's changes to the log_table in XML format, but i do need to log a user who did that and not succsessful with this. The documentation (including &

[GENERAL] PGCluster in production

2004-07-18 Thread Anton Nikiforov
have a database consistency based on sequences). Best regards, Anton Nikiforov smime.p7s Description: S/MIME Cryptographic Signature

Re: [GENERAL] LOG table changes ...

2004-07-19 Thread Anton Nikiforov
[EMAIL PROTECTED] wrote: hi, I want to track every change made to several tables...and was wondering what is the best way... What are my thoughts at the moment are to make a table like this : id, table_name, field_name, old_value, new_value, timestamp and triggers to do the logging. but this will

[GENERAL] pg_shadow in a constraint

2004-09-11 Thread Anton Nikiforov
Dear All! in my system i would like to use the pg user's usesysid as a key in my tables. But it is not allowed (that was many times described here and in the documentation) But what can i do to get my tables and data to be consistent with the system catalogue? Could you please supply me with a r