Re: [GENERAL] Hot standby usage issue

2010-10-07 Thread Rajesh Kumar Mallah
Hi , The 'problem' was remedied to certain extent by increasing max_standby_streaming_delay=30 # values in milliseconds I set it to 5 mins which is acceptable to our application. regds Rajesh Kumar Mallah. On Thu, Oct 7, 2010 at 9:55 AM, Rajesh Kumar Mallah wrote: > Dear

[GENERAL] setting application name post connection

2010-10-07 Thread Rajesh Kumar Mallah
. Is it possible? regds Rajesh Kumar Mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] setting application name post connection

2010-10-07 Thread Rajesh Kumar Mallah
current_query --+--- myapp| SELECT application_name,current_query from pg_stat_activity where application_name='myapp'; (1 row) t=> On Thu, Oct 7, 2010 at 11:49 PM, Scott Marlowe wrote: > On Thu, Oct 7, 2010 at 9:33 PM, Rajesh Kumar

Re: [GENERAL] Adding a New Column Specifically In a Table

2010-10-14 Thread Rajesh Kumar Mallah
Dear Carlos, In old version of postgresql attnum colmn of pg_catalog.pg_attribute system catalog could be modified to get desired results. I am not sure if it should be done anymore. Rajesh Kumar Mallah. On Wed, Oct 13, 2010 at 2:06 PM, Carlos Mennens wrote: > On Wed, Oct 13, 2010 at 2:04

Re: [GENERAL] How to search ignoring spaces and minus signs

2010-10-14 Thread Rajesh Kumar Mallah
Dear Andrus, Quick & Dirty Soln: SELECT * from table where regexp_replace( col , '[-\\s+]' , '' , 'g') ilike '%search_term%' ; note above sql will not use any index if you have to search 10000s of rows use alternate approaches. regds Rajesh Ku

Re: [GENERAL] Adding a New Column Specifically In a Table

2010-10-14 Thread Rajesh Kumar Mallah
Dear Carlos, application code should not depend on column positions. the requirement is not good. regds rajesh kumar mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Gripe: bytea_output default => data corruption

2010-10-14 Thread Rajesh Kumar Mallah
Dear Griper!, fortunately someone showed a easy 'fix' ALTER DATABASE foo SET bytea_output='escape' ; Regds Rajesh Kumar Mallah. On Wed, Oct 13, 2010 at 5:03 PM, ljb wrote: > r...@iol.ie wrote: >>... >> In fairness, it *is* flagged in the release note -

[GENERAL] clarification regarding max_standby_streaming_delay

2010-11-17 Thread Rajesh Kumar Mallah
Hi, We have a setup Streaming Replication with max_standby_streaming_delay=120s if statements are getting canceled with on the standby server with messages like below: FATAL: terminating connection due to conflict with recovery DETAIL: User query might have needed to see row versions that must

[GENERAL] select count(*)

2011-03-09 Thread Rajesh Kumar Mallah
Dear List , if we simply do select count(*) and not specify any table then it gives 1 eg: bric=# SELECT count(*) from job ; count --- 2380 (1 row) bric=# SELECT count(*) job ; job - 1 (1 row) bric=# SELECT count(*) ; count --- 1 (1 row) bric=# SELECT count(*) j

Re: [GENERAL] select count(*)

2011-03-09 Thread Rajesh Kumar Mallah
Wed, Mar 9, 2011 at 11:20 PM, Bill Moran wrote: > In response to Rajesh Kumar Mallah : > > > Dear List , > > > > if we simply do select count(*) and not specify any table then it gives 1 > > eg: > > > > bric=# SELECT count(*) from job ; > > count >

[GENERAL] base backup and tar problems with disappearing files.

2011-03-14 Thread Rajesh Kumar Mallah
Dear Friends, While taking online basebackup we ignore tar exit codes of 1 . However under certain circumstances tar exits we code '2' which stands for 'Fatal Errors' . Eg in case of "Cannot stat: No such file or directory" encountered while taking backup of the pgdatadir . My question is can we

Re: [GENERAL] base backup and tar problems with disappearing files.

2011-03-15 Thread Rajesh Kumar Mallah
rds. Warm Regds -mallah. On Tue, Mar 15, 2011 at 1:42 PM, John R Pierce wrote: > On 03/15/11 12:30 AM, Alban Hertroys wrote: > >> On 15 Mar 2011, at 7:46, Alban Hertroys wrote: >> >> On 15 Mar 2011, at 3:06, Rajesh Kumar Mallah wrote: >>> >>> Dear Fr

Re: [GENERAL] How to add hosts to pg_hba.conf and postgresql.conf?

2011-03-15 Thread Rajesh Kumar Mallah
can you post output of netstat -lnp when run on the machine running postgresql server ? On Tue, Mar 15, 2011 at 9:54 PM, general_lee wrote: > Hi, > > Thanks for the reply. > > Nope, not a Firewall problem. > > I also get connection refused if I telnet by IP address on the Postgres > server. > > I

[GENERAL] schema proxying virtual database

2009-09-13 Thread Rajesh Kumar Mallah
Dear List, There are many opensource applications that support postgresql (eg , gforge , bricolage , dspam ..) but does not use schemas(namespaces) as a result of which you are forced to use/create a new database and loose the advantage of linking the application data with your existing database.

Re: [GENERAL] schema proxying virtual database

2009-09-13 Thread Rajesh Kumar Mallah
thanks that sounds like a really easy & neat solution. On Sun, Sep 13, 2009 at 11:02 PM, Stefan Kaltenbrunner wrote: > Rajesh Kumar Mallah wrote: > >> Dear List, >> >> There are many opensource applications that support postgresql >> (eg , gforge , bricolage ,

[GENERAL] pg_dumpall behavior in 9.1beta1

2011-05-13 Thread Rajesh Kumar Mallah
'md56dx' ; ALTER ROLE pdns SET search_path TO pdns; in above line the 'pdns' namespace does not exists yet. regds Rajesh Kumar Mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] pg_dumpall behavior in 9.1beta1

2011-05-13 Thread Rajesh Kumar Mallah
oops! sorry for the noise it was an innocuous 'NOTICE' not ERROR as claimed. thanks for your time. regds mallah. On Fri, May 13, 2011 at 7:59 PM, Tom Lane wrote: > Rajesh Kumar Mallah writes: >> We migrated to 9.1beta1 from 9.0.x in our development environment. >&g

[GENERAL] 10GbE / iSCSI storage for postgresql.

2011-09-21 Thread Rajesh Kumar Mallah
Hi , Can PostgreSQL run fast ( within 80% of DAS) with iSCSI sotrage connected via 10GbE ? regds mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] 10GbE / iSCSI storage for postgresql.

2011-09-22 Thread Rajesh Kumar Mallah
range as compared to the situation of DAS (Direct Attached Storage). Has anyone tried like this before ? regds mallah. On Thu, Sep 22, 2011 at 9:44 AM, Craig Ringer wrote: > On 09/22/2011 03:49 AM, Rajesh Kumar Mallah wrote: >> >> Hi , >> >> Can PostgreSQL run fast ( wi

[GENERAL] "all" not inclusive of "replication" in pg_hba.conf

2011-09-24 Thread Rajesh Kumar Mallah
Dear List , It is been found that the entry local all all trust does not renders below redundant in pg_hba.conf local replication replicator01 trust regds mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

[GENERAL] enforcing transaction mode for read-write queries.

2012-09-30 Thread Rajesh Kumar Mallah
setval etc unless the session is in a transaction mode . ie they should be preceded by an explicit "BEGIN work;". This shall immensely help us to prevent many bugs in the migration. Is there any way to accomplish that ? Any help shall be greatly appreciated. regds Rajesh Kumar Mallah.

Re: [GENERAL] enforcing transaction mode for read-write queries.

2012-09-30 Thread Rajesh Kumar Mallah
A gem it was i just needed that . Thanks! I tested and it serves my purpose. On Mon, Oct 1, 2012 at 8:54 AM, David Johnston wrote: > On Sep 30, 2012, at 22:22, Rajesh Kumar Mallah > wrote: > > > Hi , > > > > We are a PerlDBI shop and and are doing a code

[GENERAL] streaming replication question

2010-10-02 Thread Rajesh Kumar Mallah
insert: rel 1663/16399/303892827; tid 1503/119 LOG: startup process (PID 20693) exited with exit code 1 LOG: terminating any other active server processes I confess that i have not RT(Fine)M yet . Regds Rajesh Kumar Mallah.

Re: [GENERAL] Streaming Recovery - Automated Monitoring

2010-10-02 Thread Rajesh Kumar Mallah
pg_last_xlog_replay_location -- 0/200 (1 row) Regds Rajesh Kumar Mallah.

Re: [GENERAL] Any advice on debugging hanging postgresql-8.1.21 (many postmaster's)

2010-10-04 Thread Rajesh Kumar Mallah
Dear Farber, Is there anything that stops you from upgrading to a more respectable release number? Eg 9.0 or at least latest 8.4.X Regds Rajesh Kumar Mallah.

Re: [GENERAL] streaming replication question

2010-10-04 Thread Rajesh Kumar Mallah
or sending the records ? anticipating your enlightening answers your respectfully Rajesh Kumar Mallah.

Re: [GENERAL] streaming replication question

2010-10-04 Thread Rajesh Kumar Mallah
Dear Masao, I would also like to inform that i observed the phenomenon only once. And i am still not too clear on the correct setup. Regds Rajesh Kumar Mallah. > > This looks like the bug of HS. But I'm not sure why KnownAssignedXids > overflowed. > > Regards, > >

Re: [GENERAL] Having two simultaneous and similar database

2010-10-04 Thread Rajesh Kumar Mallah
Dear Sai, Why do you want to update at nite only. You can setup streaming replication with pgsql9.0 and have it updated almost instantly. However if you would want it that way only read about various backup options in the link that was provided. regds mallah. On Mon, Oct 4, 2010 at 4:02 PM, Sa

Re: [GENERAL] streaming replication question

2010-10-05 Thread Rajesh Kumar Mallah
On Tue, Oct 5, 2010 at 12:09 AM, Fujii Masao wrote: > On Tue, Oct 5, 2010 at 2:57 AM, Rajesh Kumar Mallah > wrote: > > I am currently aiming to setup only SR between 2 servers only. > > "only SR" means that you don't need Hot Standby (i.e., you don't

Re: [GENERAL] streaming replication question

2010-10-05 Thread Rajesh Kumar Mallah
Mallah. On Tue, Oct 5, 2010 at 5:08 AM, Simon Riggs wrote: > On Sat, 2010-10-02 at 12:02 -0400, Rajesh Kumar Mallah wrote: > > FATAL: too many KnownAssignedXids > > That's a bug. > > I've a few guesses about that, but I'll put some better instrumentation > in t

Re: [GENERAL] Non-standard escape sequences from Crystal Reports

2010-10-05 Thread Rajesh Kumar Mallah
Dear Rob , this will give warning: SELECT co_name from foo where co_name ilike '%\\_%' limit 10; and this will not: SELECT co_name from foo where co_name ilike E'%\\_%' limit 10; regds Rajesh Kumar Mallah.

[GENERAL] bytea_output default value change in 9.0 breaks Apache::Session::Postgres

2010-10-05 Thread Rajesh Kumar Mallah
or a database table is missing or corrupt Regds Rajesh Kumar Mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Non-standard escape sequences from Crystal Reports

2010-10-05 Thread Rajesh Kumar Mallah
matches '_' in strings. two backslash is required so that ilike gets \_ it is the rule of quoting literal values in sql. if you can add E you can get rid of the warnings. Regds Rajesh Kumar Mallah. On Tue, Oct 5, 2010 at 2:18 PM, Rob Richardson wrote: > Thank you very much!  Your ex

[GENERAL] Hot standby usage issue

2010-10-06 Thread Rajesh Kumar Mallah
g in these queries are not frequently updated ones. Can anyone suggest how can we debug the situation. Regds Rajesh Kumar Mallah. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Hot standby usage issue

2010-10-06 Thread Rajesh Kumar Mallah
both servers are on same gigabit switch. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Index Scan Backward on wrong index in partitioned table.

2011-11-08 Thread Rajesh Kumar Mallah
Hi , We have a set of partitioned tables and we run the query on main table the query is select uniq_id ,profile_id from general.profile_log where profile_id=3528336 order by uniq_id desc limit 5; there is a index on profile_id on the child tables of profile_log. The query on profile_id does no

[GENERAL] procedural languages in 7.4.6

2004-10-31 Thread Rajesh Kumar Mallah
Hi, In 7.4.6 there is only plpgsql under pl where as 7.4.5 includes it in the main distribution can anyone tell from where plperl for 7.4.6 can be got? Regds mallah. -- regds Mallah. Rajesh Kumar Mallah +---+ | Tradeindia.com (3,11,246) Registered

Re: [GENERAL] passing array as argument and returning an array in

2004-01-21 Thread Rajesh Kumar Mallah
Jenny Zhang wrote: Jenny, although this is old but i find it worth mentioning tom's comment on it. I hit your comment on facing similar issue. The cited example is pretty iffy since it assumes that the valid array entries are all > 0. In recent PG version you can use the array_upper and array_lo

[GENERAL] Functions in CHECK constraint not getting dumped before tables.

2004-02-01 Thread Rajesh Kumar Mallah
Greetings! It is found that pg_dump does not dump function referred in CHECK constraint definations before dumping the table defination . As a result the tables do not get restored due to lack of defined functions. Is it something that will be worked upon in future ? regds mallah. -

Re: [GENERAL] Functions in CHECK constraint not getting dumped before

2004-02-05 Thread Rajesh Kumar Mallah
Rajesh Kumar Mallah wrote: Tom Lane wrote: It is found that pg_dump does not dump function referred in CHECK constraint definations before dumping the table defination . As a result the tables do not get restored due to lack of defined functions. Is it something that will be worked upon

Re: [GENERAL] Functions in CHECK constraint not getting dumped before

2004-02-05 Thread Rajesh Kumar Mallah
t This is relatively harmless to me at least, but the point is to have pg_dump work without requiring any manual editing of the dumpfiles :) Regds Mallah. Rajesh Kumar Mallah wrote: Rajesh Kumar Mallah wrote: Tom Lane wrote: It is found that pg_dump does not dump function referred in CHECK co

[GENERAL] hugetlb feature linux 2.6 kernel

2004-04-30 Thread Rajesh Kumar Mallah
Does postgresql takes advantage of hugetlb feature of linux kernel 2.6 ? http://otn.oracle.com/pub/notes/technote_rhel3.html regds mallah. ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-no

Re: [GENERAL] case for lock_timeout

2004-06-30 Thread Rajesh Kumar Mallah
Tom Lane wrote: <[EMAIL PROTECTED]> writes: I feel lock_timeout it will be a nice feature . Lemme know what would be the solution of the above problem from existing set of features. AFAICS statement_timeout would work just fine for that; or you could use NOWAIT. ok, you mean we should p

[GENERAL] alter table cascade does not give notice about dropped indexes

2004-07-03 Thread Rajesh Kumar Mallah
Hi, Looks like alter table does not tells about the indexes it dropped PG version: 7.4.3 Regds mallah. tradein_clients=# \d general.membership_status Table "general.membership_status" ++---++ | Column

Re: [GENERAL] help required

2004-07-12 Thread Rajesh Kumar Mallah
? do you have the database backups? Regds Mallah. Thanks, Ramesh ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org -- regds Mallah. Rajesh Kumar Mallah

Re: [GENERAL] PostgreSQL 8.0.0 Officially Goes Beta

2004-08-10 Thread Rajesh Kumar Mallah
broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match -- regds Mallah. Rajesh Kumar Mallah +---+ | Tradeindia.com (3,11,246) Registered

Re: [GENERAL] error moving table to tablespace (8.0 beta win32 )

2004-08-10 Thread Rajesh Kumar Mallah
egards, Christian ---(end of broadcast)--- TIP 8: explain analyze is your friend -- regds Mallah. Rajesh Kumar Mallah +---+ | Tradeindia.com (3,11,246) Registered Users | |

[GENERAL] Making pgsql error messages more developers' friendly.

2003-06-26 Thread Rajesh Kumar Mallah
Regds Mallah. -- Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace. ---(end of broadcast)--- T

Re: [GENERAL] Making pgsql error messages more developers' friendly.

2003-06-27 Thread Rajesh Kumar Mallah
On Friday 27 Jun 2003 12:14 pm, Tom Lane wrote: > Rajesh Kumar Mallah <[EMAIL PROTECTED]> writes: > > Shudnt' messages like > > ERROR: value too long for type character varying(5) > > Indicate which column and table the server is talking about . > &

Re: [GENERAL] Making pgsql error messages more developers' friendly.

2003-06-30 Thread Rajesh Kumar Mallah
stall 7.4dev soon and use it to find the improvements. Regds Mallah. > > regards, tom lane > > ---(end of broadcast)--- > TIP 8: explain analyze is your friend -- Rajesh Kumar Mallah, Project Manager (Development) I

Re: [GENERAL] Making pgsql error messages more developers' friendly.

2003-06-30 Thread Rajesh Kumar Mallah
On Saturday 28 Jun 2003 8:50 pm, Jan Wieck wrote: > Rajesh Kumar Mallah wrote: > > Hi Folks, > > > > Shudnt' messages like > > > > ERROR: value too long for type character varying(5) > > Maybe, yes. It's just not that trivial to do. > > &

Re: [GENERAL] CREATE TABLE with REFERENCE

2003-07-28 Thread Rajesh Kumar Mallah
kay-uwe.genz wrote: Hi @ all, i've a little problem with two tables and FOREIGN KEYs. I've read about this long time ago, but didn't remember me where. Well, I hope you can help me. I've create two TABLEs "counties" and "cities". "Countries" have a row "capital" is REFERENCEd "cities". "citie

Re: [GENERAL] CREATE TABLE with REFERENCE

2003-07-28 Thread Rajesh Kumar Mallah
Stephan Szabo wrote: On Mon, 28 Jul 2003, kay-uwe.genz wrote: i've a little problem with two tables and FOREIGN KEYs. I've read about this long time ago, but didn't remember me where. Well, I hope you can help me. I've create two TABLEs "counties" and "cities". "Countries" have a

Re: [GENERAL] Problem in restoring data

2003-11-08 Thread Rajesh Kumar Mallah
Yes i may drop the indexes even , but is it quite usual to take these work arounds in doing major upgrades. Regds Mallah. Alvaro Herrera wrote: On Mon, Nov 10, 2003 at 01:36:20AM +0530, Rajesh Kumar Mallah wrote: PS: i do not want to edit the (splitted) dump file , my

Re: [GENERAL] Problem in restoring data

2003-11-08 Thread Rajesh Kumar Mallah
Tom Lane wrote: Rajesh Kumar Mallah <[EMAIL PROTECTED]> writes: I face the following problem in transferring data from pgsql 7.3.4 to pgsql 7.4 RC1 . I am piping the output of pg_dumpall from 7.3 to 7.4 running on different port. The problem is there is a gist index on txtidx type on

Re: [GENERAL] Problem in restoring data [SOLVED ]

2003-11-08 Thread Rajesh Kumar Mallah
It did solve my problem now its dumped like: SET search_path = archives, pg_catalog; SET CREATE INDEX site_search_gist ON site_search USING gist (keywordidx public.gist_txtidx_ops); CREATE INDEX thanks regds mallah. Tom Lane wrote: Rajesh Kumar Mallah <[EMAIL PROTECTED]>

Re: [GENERAL] Question on Select

2003-11-09 Thread Rajesh Kumar Mallah
select ref_code from tab_b where not exists (select * from tab_a where item_id = tab_b.item_id); make sure u have index on item_id in tab_a . the above sql is quite efficient , other method is to use left join. Alex wrote: Hi, I have two tables, Table A: item_id Table B: item_id, ref_c

[GENERAL] PL/PGSQL help for getting number of rows matched.

2003-11-10 Thread Rajesh Kumar Mallah
Hi, We need to implement following logic efficiently. SELECT * from some_table where [ Query 1 ] IF rows_matched = 1 THEN use the single row that matched. ELSIF loop thru the results of [Query 1] END IF; Currently i am doing select count(*) for getting rows_matched in

[GENERAL] ALTER TABLE ADD UNIQUE .....

2003-11-11 Thread Rajesh Kumar Mallah
Hi , Looks like ADD UNIQUE( some_fuc( some_feild) ) is not supported with add constraint. the only way is to add the constriant is using UNIQUE INDEX . Is it a bug or intended behaviour? Regds Mallah. in 7.3.4 tradein_clients=# ALTER TABLE general.email_master ADD CONSTRAINT e

[GENERAL] Problem with create index

2003-11-11 Thread Rajesh Kumar Mallah
Hmmm... am i doing anything really silly? tradein_clients=# CREATE INDEX profile_master2 on profile_master (lower( btrim(email) ) ); ERROR: parser: parse error at or near "(" at character 61 tradein_clients=# Regds mallah. ---(end of broadcast)---

Re: [GENERAL] Problem with create index

2003-11-11 Thread Rajesh Kumar Mallah
On Tuesday 11 Nov 2003 2:00 pm, Stephan Szabo wrote: > On Tue, 11 Nov 2003, Rajesh Kumar Mallah wrote: > > Hmmm... am i doing anything really silly? > > Functional indexes on 7.3 and earlier only allow a function over one or > more columns (which would disallow the below as

[GENERAL] Problem with FKEYS

2003-11-12 Thread Rajesh Kumar Mallah
How come pgsql7.3.4 Was allowing me to delete the master record while referencing records were present in slave table? The problem was detected when the database was migrated to 7.4 and deletions were being refused. Regards Mallah tradein_clients=# \d user_services Table "public.user_serv

Re: [GENERAL] procpid in pg_stat_activity but no correspoding backend

2003-11-12 Thread Rajesh Kumar Mallah
Jan Wieck wrote: Rajesh Kumar Mallah wrote: Hi , I noticed that an entry in pg_stat_activity was existing for a long duration > 2 mins while its backend ( process corresponding to that procpid) was not running. how can it be possible ? version: 7.3.4 There was a bug that caused a crash

Re: [GENERAL] Problem with FKEYS

2003-11-12 Thread Rajesh Kumar Mallah
Tom Lane wrote: Rajesh Kumar Mallah <[EMAIL PROTECTED]> writes: How come pgsql7.3.4 Was allowing me to delete the master record while referencing records were present in slave table? The only explanation I can think of is that the referencing row shown as be

Re: [GENERAL] DOMAIN usability

2003-11-15 Thread Rajesh Kumar Mallah
Peter Eisentraut wrote: Rajesh Kumar Mallah writes: *1.* Suppose varchar(30) turns out to be too small oneday and we want to increase it to varchar(100) , what do i do ? This is no different from the problem of changing a column type in place. It's still

[GENERAL] More Praise! 7.4

2003-11-15 Thread Rajesh Kumar Mallah
ic.branding_sp_category USING (company_id)   WHERE (category_id = 1142 OR category_id = 1143 OR category_id = 1145 OR category_id = 1259 OR category_id = 1161) AND old_company_id = 0 AND status::text = 'a'::character varying::text AND email::text !~~* '%.trade-india.com'::text AND email IS NOT NULL   ORDER BY company_id; -- Rajesh Kumar Mallah, Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.

[GENERAL] DOMAIN usability

2003-11-15 Thread Rajesh Kumar Mallah
Hi  , I think one of the usage patterns of  DOMAINS is to have size specifications and validity constraints at one place for easy administration of Database. Eg, instead of declaring email to be varchar(30) in 10s of tables  and putting a CHECK constraint for presence of  '@'  we could dec

[GENERAL] 7.4RC2 --> 7.4

2003-11-18 Thread Rajesh Kumar Mallah
Is dump-->initdb-->reload required for RC2 --> 7.4 ? Regds Mallah. ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

[GENERAL] Silent truncation of numeric values.

2003-11-22 Thread Rajesh Kumar Mallah
Hi, How come numeric(10,2) accepting value 10.011 and truncating the .001 part ? Shudnt' it be complaining , i am not sure. Regds Mallah. tradein_clients=# CREATE TABLE t_a ( a numeric (10,2) ); CREATE TABLE tradein_clients=# tradein_clients=# tradein_clients=# \d t_a Table "publ