Re: [GENERAL] Inheritance and foreign keys

2017-05-25 Thread Jayadevan M
On Thu, May 25, 2017 at 6:00 PM, Achilleas Mantzios < ach...@matrix.gatewaynet.com> wrote: > The way I do it is the following : > - ensure a common sequence for the ID for all tables in the inheritance > tree (usually one parent and one or more children) > - enforce normal FK constraints for all

[GENERAL] Inheritance and foreign keys

2017-05-25 Thread Jayadevan M
); select * from myt; id 1 2 create table a (id integerreferences myt(id)); insert into a values(2); ERROR: insert or update on table "a" violates foreign key constraint "a_id_fkey" DETAIL: Key (id)=(2) is not present in table "myt". Regards, Jayadevan

[GENERAL] truncate table getting blocked

2016-04-26 Thread Jayadevan M
myschema.table1; | SET search_path TO myschema,public PG version : PostgreSQL 9.4.5 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux) 4.8.5, 64-bit Thanks, Jayadevan

Re: [GENERAL] Partitioning and constraint exclusion

2015-09-08 Thread Jayadevan M
rows=12 width=4) (actual time=0.000..0.000 rows=0 loops=1) Filter: (id = 1) * -> Seq Scan on child3 (cost=0.00..40.00 rows=12 width=4) (actual time=0.000..0.000 rows=0 loops=1)* * Filter: (id = 1)* Thanks, Jayadevan David J. > >

[GENERAL] Partitioning and constraint exclusion

2015-09-07 Thread Jayadevan M
used. But why doesn't the planner just use constraint exclusion and not go for the index scan? Anyone faced a similar issue? Thanks, Jayadevan

Re: [GENERAL] Partitioning and constraint exclusion

2015-09-07 Thread Jayadevan M
he data will be found and the table with 2500+ values in the check constraint. I may be missing something? I tried changing the filter from myuid in (1,2,3) to myuid = 1 or myuid = 2 or It did not improve the plan. One Index Cond became 3 Index Cond . Thanks, Jayadevan

[GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Jayadevan M
postgresql.conf is in $PGDATA. So they will be in the same directory? Regards, Jayadevan

Re: [GENERAL] Streaming replication - slave not getting promoted

2015-01-04 Thread Jayadevan M
On Sun, Jan 4, 2015 at 8:01 PM, Adrian Klaver adrian.kla...@aklaver.com wrote: On 01/04/2015 06:09 AM, Jayadevan M wrote: Hi, I have streaming replication set up, with PostgreSQL 9.3. The entries in recovery.conf on the slave are as follows - standby_mode = 'on' primary_conninfo = 'host

[GENERAL] Query planning

2014-10-31 Thread Jayadevan M
, right? How many unique values are there in a column (cardinality), that is estimated while finding out selectivity? Regards, Jayadevan

Re: [GENERAL] Insert zero to auto increment serial column

2014-04-02 Thread Jayadevan M
Will a rule work? http://www.postgresql.org/docs/9.3/static/sql-createrule.html On Wed, Apr 2, 2014 at 5:47 PM, loc c320...@gmail.com wrote: I'm currently using an Informix Innovator-C database with Aubit4GL and I would like to migrate to PostgreSQL, it looks like the transition will not be

[GENERAL] Doubts on startup costs

2014-03-30 Thread Jayadevan M
be equal to or greater than the total cost of the inner nodes? (My guess is NO, there may be cases where the outer node can start processing before the inner node is completely done). Regards, Jayadevan

Re: [GENERAL] High Level Committers Wanted

2014-03-18 Thread Jayadevan M
On Sat, Mar 15, 2014 at 1:51 AM, Andy Colson a...@squeakycode.net wrote: On 3/14/2014 6:08 AM, Antman, Jason (CMG-Atlanta) wrote: I'm not a high level committer, nor am I even a regular poster to this list. not saying this post is true, but... If I'm reading between the lines correctly,

[GENERAL] table design and data type choice

2014-01-07 Thread Jayadevan M
and vote_up =1) . Is it better to have data type of Boolean, varchar or int? I assume there isanother decision too - have 2 columns - one for up and one for down, or have just one column which will be 1 or -1. Regards, Jayadevan

Re: [GENERAL] authentication failure

2014-01-05 Thread Jayadevan
Sameer Kumar wrote This only tells that there is one instance running! There could be multiple PostgreSQL installations. And I guess that is what Tom meant here. I doubt that was what Tom meant. Anyway, we can see from the error that the request did reach the server. Sameer Kumar wrote

Re: [GENERAL] authentication failure

2014-01-05 Thread Jayadevan M
PGPORT=1234 PGUSER=postgres PGHOST=localhost On Sun, Jan 5, 2014 at 9:03 PM, Adrian Klaver adrian.kla...@gmail.comwrote: On 01/04/2014 08:46 PM, Jayadevan M wrote: Log entries for 3 situations - 2 successful and one failed attempt - From non-chroot, shell user postgres 2014-01-05 10:11:58

Re: [GENERAL] authentication failure

2014-01-05 Thread Jayadevan M
I am able to login as postgres with password from the same machine. So it is not an expiry issue (as you too concluded). Output from strace is about 500 lines. I am pasting what I feel may be relevant. I hope this will be useful. execve(/usr/pgsql-9.3/bin/psql, [psql, -h, localhost], [/* 24 vars

Re: [GENERAL] authentication failure

2014-01-04 Thread Jayadevan M
: host=::1 port=47949 2014-01-05 10:12:51 IST [17052]: [2-1] user=postgres,db=postgres LOG: connection authorized: user=postgres database=postgres On Sat, Jan 4, 2014 at 8:43 PM, Adrian Klaver adrian.kla...@gmail.comwrote: On 01/03/2014 09:29 PM, Jayadevan M wrote: There is only one instance

[GENERAL] authentication failure

2014-01-03 Thread Jayadevan M
in the non-chroot environment. I am also running a python application which uses psycopg2 and that is working fine. Regards, Jayadevan

Re: [GENERAL] authentication failure

2014-01-03 Thread Jayadevan M
Nope - psql -W psql: FATAL: password authentication failed for user postgres On Fri, Jan 3, 2014 at 2:49 PM, Ashesh Vashi ashesh.va...@enterprisedb.comwrote: Try psql -W for prompting the password forcefully. On Fri, Jan 3, 2014 at 2:46 PM, Jayadevan M maymala.jayade...@gmail.comwrote

Re: [GENERAL] authentication failure

2014-01-03 Thread Jayadevan M
I am able to login from the non-chroot environment. So it is not an issue with pg_hba.conf and not an issue of password expiration. Is there a debug psql option? On Fri, Jan 3, 2014 at 5:09 PM, Chris Curvey ch...@chriscurvey.com wrote: On Fri, Jan 3, 2014 at 4:16 AM, Jayadevan M

Re: [GENERAL] authentication failure

2014-01-03 Thread Jayadevan M
3, 2014 at 5:13 PM, Jayadevan M maymala.jayade...@gmail.comwrote: I am able to login from the non-chroot environment. So it is not an issue with pg_hba.conf and not an issue of password expiration. Is there a debug psql option? OK. Have you checked the PGPASSWORD environment variable

Re: [GENERAL] authentication failure

2014-01-03 Thread Jayadevan M
inconvenience, but I would like to resolve this. The no password supplied message comes back so fast, it is as if it did not even attemp to connect. On Fri, Jan 3, 2014 at 8:37 PM, Tom Lane t...@sss.pgh.pa.us wrote: Adrian Klaver adrian.kla...@gmail.com writes: On 01/03/2014 04:54 AM, Jayadevan M

[GENERAL] Refresh Materialized View

2014-01-01 Thread Jayadevan M
? Does the refresh result in exclusive locking? Regards, Jayadevan

Re: [GENERAL] Refresh Materialized View

2014-01-01 Thread Jayadevan M
To answer my own question, I saw this thread - http://postgresql.1045698.n5.nabble.com/Efficiency-of-materialized-views-refresh-in-9-3-td5762618.html I think that does answer my questions. Nothing has changed? Regards, Jayadevan On Wed, Jan 1, 2014 at 6:42 PM, Jayadevan M maymala.jayade

Re: [GENERAL] design for multiple time series

2013-12-13 Thread Jayadevan M
On Fri, Dec 13, 2013 at 12:15 AM, Seb splu...@gmail.com wrote: Hi, I'm working on the design of a database for time series data collected by a variety of meteorological sensors. Many sensors share the same sampling scheme, but not all. I initially thought it would be a good idea to have a

[GENERAL] vacuuming - doubt

2013-12-11 Thread Jayadevan M
; VACUUM accounts= select pg_total_relation_size('myt');; pg_total_relation_size 0 (1 row) So what was the 65536 bytes left behind after standard vacuum? Regards, Jayadevan

Re: [GENERAL] vacuuming - doubt

2013-12-11 Thread Jayadevan
Scott Marlowe-2 wrote 30 second vacuum lesson: Thank you. -- View this message in context: http://postgresql.1045698.n5.nabble.com/vacuuming-doubt-tp5782828p5783057.html Sent from the PostgreSQL - general mailing list archive at Nabble.com. -- Sent via pgsql-general mailing list

[GENERAL] WITH and exclusive locks

2013-11-23 Thread Jayadevan M
is not an issue. Is that correct? Regards, Jayadevan

Re: [GENERAL] log_line_prefix

2013-11-16 Thread Jayadevan
hubert depesz lubaczewski-2 wrote It looks like you're using csvlog. log_line_prefix is used only for stderr/syslog logging. Yes, that is right. Thank you. -- View this message in context: http://postgresql.1045698.n5.nabble.com/log-line-prefix-tp5778674p5778688.html Sent from the

[GENERAL] Postgres Server backend process

2013-11-15 Thread Jayadevan M
- When a request message is received, we now fork() immediately. The child process performs authentication of the request, Now authentication is done by the Backend process and not by the daemon? Regards, Jayadevan

[GENERAL] log_line_prefix

2013-11-15 Thread Jayadevan M
anyway. But which setting? Regards, Jayadevan

Re: [GENERAL] Tuning 9.3 for 32 GB RAM

2013-11-14 Thread Jayadevan M
or if they will waste gigabytes of RAM. Thank you Alex You may want to look at effective_cache_size also. May be quickly go through http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server and see what http://pgfoundry.org/projects/pgtune/ says. Jayadevan

Re: [GENERAL] Theory question

2013-11-13 Thread Jayadevan
Jeff Janes wrote No. The checkpointer writes all data that was dirty as of a certain time (the start of the checkpoint) regardless of how often it was used since dirtied, and the background writer writes data that hasn't been used recently, regardless of when it was first dirtied. Neither

Re: [GENERAL] Theory question

2013-11-13 Thread Jayadevan M
On Thu, Nov 14, 2013 at 7:58 AM, Jayadevan maymala.jayade...@gmail.comwrote: Jeff Janes wrote No. The checkpointer writes all data that was dirty as of a certain time (the start of the checkpoint) regardless of how often it was used since dirtied, and the background writer writes data

Re: [GENERAL] Theory question

2013-11-12 Thread Jayadevan
Kevin Grittner-5 wrote The checkpointer process is responsible for creating safe points from which a recovery can begin; the background writer tries to keep some pages available for re-use so that processes running queries don't need to wait for page writes  in order to have free spots to use

[GENERAL] Theory question

2013-11-11 Thread Jayadevan M
Hi, What are the real differences between the bgwriter and checkpointer process? Both of them write data from the buffer to the data files, right? Is it just a matter of 'when' they write? Regards, Jayadevan

Re: [GENERAL] Documents/ppts/pdfs

2013-11-09 Thread Jayadevan M
, Jayadevan

[GENERAL] Documents/ppts/pdfs

2013-11-08 Thread Jayadevan M
? I can't find any links in postgresql.org or documentation pointing to files like this. Regards, Jayadevan

Re: [GENERAL] Explanantion on pgbouncer please

2013-11-04 Thread Jayadevan
Why don't you try adding layers one by one? 1) Ensure you can connect to PostgreSQL from psql client (on another machine) 2) Configure pgbouncer 3) See if you can connect from psql pgbouncer PostgreSQL Check the data in pgbpuncer and PostgreSQL (number of sessions, idle connections etc). You

Re: [GENERAL] Connection pooling

2013-10-31 Thread Jayadevan
I have never used pgbouncer myself. But my guess is you have to look at the Timeout parameters in the configuration file. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Connection-pooling-tp5776378p5776481.html Sent from the PostgreSQL - general mailing list archive

[GENERAL] search_path and current_schema

2013-10-27 Thread Jayadevan M
-- mynewschema, $user, public (1 row) I thought current_schemas and search_path will return the same set of schemas (except that current_schema will show pg_catalog also, if we use true). Shouldn't mynewschema appear in the output of select current_schemas(true)? Regards, Jayadevan

Re: [GENERAL] search_path and current_schema

2013-10-27 Thread Jayadevan M
OK. When I logged in as a user who had access to the schema, the output from current_schemas and search_path were matching. Thanks. On Sun, Oct 27, 2013 at 9:55 PM, Tom Lane t...@sss.pgh.pa.us wrote: Jayadevan M maymala.jayade...@gmail.com writes: I thought current_schemas and search_path

Re: [GENERAL] PostgreSQL Point In Time Recovery

2013-10-26 Thread Jayadevan
Alan Hodgson wrote Well, yeah. The point was that you possibly could run it for a while to catch up without taking a new base backup if you desired. You should also keep copies of it for PITR. Something like this - delayed replication

Re: [GENERAL] PostgreSQL Point In Time Recovery

2013-10-25 Thread Jayadevan
Jeff Janes wrote I restore from my base backup plus WAL quite often. It is how I get a fresh dev or test instance when I want one. (It is also how I have confidence that everything is working well and that I know what I'm doing should the time come to do a real restore). When that starts to

Re: [GENERAL] PostgreSQL Point In Time Recovery

2013-10-25 Thread Jayadevan
Alan Hodgson wrote That's basically what warm standby's do, isn't it? As long as they keep recovery open it should work. A warn standby will be almost in sync with the primary, right? So recovery to point-in-time (like 10 AM this morning) won't be possible. We need a base, but it shouldn't be

[GENERAL] PostgreSQL Point In Time Recovery

2013-10-23 Thread Jayadevan M
? To avoid that, what is the standard process followed - take a base backup every day or once a week? Regards, Jayadevan

[GENERAL] postgresql.conf error

2013-10-18 Thread Jayadevan M
to test the configuration file for errors, after making changes? Regards, Jayadevan

Re: [GENERAL] postgresql.conf error

2013-10-18 Thread Jayadevan M
, On Fri, Oct 18, 2013 at 1:12 PM, Tom Lane t...@sss.pgh.pa.us wrote: Jayadevan M maymala.jayade...@gmail.com writes: Which is the quickest way to troubleshot the message LOG: configuration file /postgresql.conf contains errors; unaffected changes were applied ? There should

Re: [GENERAL] logging statements in PostgreSQL

2013-10-01 Thread Jayadevan M
Hi, I was looking for options to make sure SQLs executed as part of functions also get logged. Since this is a production system, I wanted to do it without the EXPLAIN also written to the logs. May be that is not possible? Regards, Jayadevan On Mon, Sep 30, 2013 at 5:08 PM, Albe Laurenz

Re: [GENERAL] logging statements in PostgreSQL

2013-09-25 Thread Jayadevan M
, Amit Langote amitlangot...@gmail.comwrote: On Wed, Sep 25, 2013 at 12:18 PM, Jayadevan M maymala.jayade...@gmail.com wrote: Hi all, I am planning to use pgbadger for analyzing queries. Documentation for pgbadger says Do not enable log_statement as their log format will not be parsed

[GENERAL] logging statements in PostgreSQL

2013-09-24 Thread Jayadevan M
, for example. select sp_pg_refresh_alert_data(current_date); But the SELECT and INSERT in the function are not getting logged. Is that how PostgreSQL logging works, or I have missed something? Regards, Jayadevan

Re: [GENERAL] Query runs forever after upgrading to 9.3

2013-09-23 Thread Jayadevan M
Could you please post EXPLAIN for that query? How 'fat' are the temporary tables - just a couple of columns or really wide? On Mon, Sep 23, 2013 at 7:08 PM, Andrus kobrule...@hot.ee wrote: Query SELECT * FROM toode WHERE toode in (SELECT toode FROM tempkaive) OR toode in (SELECT toode

Re: [GENERAL] Using oracle stored procedures for postgresql database

2013-09-20 Thread Jayadevan M
Regards, Jayadevan On Fri, Sep 20, 2013 at 3:19 PM, nikhilruikar nikhilrui...@gmail.comwrote: Hi I am planning to migrate oracle database to postgres. I need to know if there are any plugins or tool with which I can use stored procedures written in oracle schema for postgres with out

Re: [GENERAL] Postgres 9.3 Installation Problems Windows 7 64 Bit Pro

2013-09-20 Thread Jayadevan M
It should be possible to install the SW without initializing the cluster. That way you may be in a better position to troubleshoot the issue. Complete the installation, then use initdb to initialize a cluster. Have a look at this url too -

Re: [GENERAL] Query - CPU issue

2013-09-19 Thread Jayadevan
Thank you for the pointers. I will try those suggestions. As I mentioned later, resolving the query solved the problem for now. Regards, Jayadevan On Thu, Sep 19, 2013 at 11:40 AM, Kevin Grittner-5 [via PostgreSQL] ml-node+s1045698n5771567...@n5.nabble.com wrote: Jayadevan [hidden email

[GENERAL] Moving from 9.2 to 9.3

2013-09-18 Thread Jayadevan M
Hello, When I upgraded from 9.2 to 9.3, I copied the postgresql.conf and pg_hba.conf files form 9.2 installation and used those. Is that likely to cause any issues? I did not see any significant parameter changes from 9.2 to 9.3. So far, it is running fine. Regards, Jayadevan

[GENERAL] Query - CPU issue

2013-09-18 Thread Jayadevan M
are being used (if I execute the SELECT in the function using a valid value for the ip value. Regards, Jayadevan

Re: [GENERAL] Query - CPU issue

2013-09-18 Thread Jayadevan
Kevin Grittner-5 wrote What is the longest you have let it run, in hours or minutes? I let it run for about 10 minutes and killed it. Kevin Grittner-5 wrote By the way, IMMUTABLE has to be wrong here, since the results depend on the state of the database.  STABLE is likely the right

Re: [GENERAL] Query - CPU issue

2013-09-18 Thread Jayadevan
Kevin Grittner-5 wrote We already had this.  I was asking for you to get EXPLAIN ANALYZE output for a run of the SELECT statement inside the geoip_city() function. Merge Join (cost=9268.34..26193.41 rows=6282 width=24) (actual time=892.188..892.190 rows=1 loops=1) Merge Cond: (l.id =

Re: [GENERAL] Query - CPU issue

2013-09-18 Thread Jayadevan
Rewriting the query in the function like this solved the issue (this is how it was in the SQL at https://github.com/tvondra/geoip/blob/master/sql/geoip--0.1.0.sql) explain analyze SELECT l.id, l.country, l.region, l.city FROM blocks b JOIN locations l ON (b.location_id = l.id) WHERE

Re: [GENERAL] [pgeu-general] Call for design: PostgreSQL mugs

2013-09-08 Thread Jayadevan M
Hello all, Elephants Never Forget sounds like a good idea. It refers to reliability of the database (from a transaction perspective) and ability to recover lost data. http://www.scientificamerican.com/article.cfm?id=elephants-never-forget Regards, Jayadevan On Sun, Sep 8, 2013 at 9:20 PM, Erik

Re: [GENERAL] OLAP

2013-08-27 Thread Jayadevan
Alban Hertroys-4 wrote How is Pentaho an OLAP tool? Aren't you mixing up a few things? We already use Pentaho for ETL, so I'm a bit familiar with it. Why do you consider it suitable for managing an OLAP database? How would Pentaho manage cube rollup triggers, business models, dimensions and

[GENERAL] PostgreSQL 9.3

2013-08-18 Thread Jayadevan M
Hello all, Is the release date for PostgreSQL 9.3 production decided? We are going live in a couple of weeks with a portal and if possible, would like to go with 9.3, Materialized Views being the key feature that will add value. Regards, Jayadevan

Re: [GENERAL] PostgreSQL 9.3

2013-08-18 Thread Jayadevan M
Hi, Thanks. So we are close to the tentative release date. Good. Regards, Jayadevan On Mon, Aug 19, 2013 at 10:16 AM, Sandro CAZZANIGA cazzaniga.san...@gmail.com wrote: Le 19/08/2013 06:38, Jayadevan M a écrit : Hello all, Is the release date for PostgreSQL 9.3 production decided? We

Re: [GENERAL] Debugging Postgres?

2013-08-14 Thread Jayadevan M
Hi, Having a look at the PostgreSQL log may help. http://stackoverflow.com/questions/71/how-to-log-postgres-sql-queries You could also try logging in via psql on the database host itself, to ensure it is not a network issue. Regards, Jayadevan On Wed, Aug 14, 2013 at 2:21 AM, Barth Weishoff

Re: [GENERAL] Trigger to update table info

2013-08-12 Thread Jayadevan M
Hi, In case you are not keen on getting the latest and really accurate counts/size, you could just refer the views readily available - http://stackoverflow.com/questions/2596670/how-do-you-find-the-row-count-for-all-your-tables-in-postgres You won't get the updatetime, though. Regards, Jayadevan

Re: [GENERAL] Replication Postgre Oracle

2013-08-08 Thread Jayadevan M
Hi, From Oracle to PostgreSQL, you could have a look at Goldengate. It does not support PostgreSQL as the source database. Regards, Jayadevan On Wed, Aug 7, 2013 at 1:54 PM, BOUVARD Aurélien aurelien.bouv...@supinfo.com wrote: Hi all, ** ** My compagny would like to configure

Re: [GENERAL] Migration from Symfoware to PostgreSQL-Constructor functions

2013-08-04 Thread Jayadevan M
Hi, System tables, views and most of the metadata can be retrieved from these views - http://www.postgresql.org/docs/9.2/static/information-schema.html Regards, Jayadevan On Sun, Aug 4, 2013 at 2:48 PM, sachin kotwal kotsac...@gmail.com wrote: Hello While migrating small application from

[GENERAL] pg recovery

2013-07-11 Thread Jayadevan M
Hi, I have postgresql streaming replication set up. I forgot to add an entry for trigger_file in recovery.conf. So I added that entry and did a pg_ctl reload. Is there a way to confirm that the entry has been read by the server? Any view/function? Regards, Jayadevan DISCLAIMER

Re: [GENERAL] pg recovery

2013-07-11 Thread Jayadevan M
to recovery.conf. How can I make slave 'accept' that change? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly

Re: [GENERAL] pg recovery

2013-07-11 Thread Jayadevan M
. Apologies. I tried restarting the standby node and it worked. Thanks a lot, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail

Re: [GENERAL] query on query

2013-07-05 Thread Jayadevan M
) UNION ALL SELECT n+10 FROM t WHERE n 50 ) select count(*), t.n from m, t where mark t.n group by t.n; I meant 'fast', not 'fat. Sorry for the typo. You got it right. The query gets the data exactly as I wanted it. Thanks a lot. Regards, Jayadevan DISCLAIMER: The information in this e-mail

[GENERAL] query on query

2013-07-04 Thread Jayadevan M
, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original

Re: [GENERAL] json functions

2013-06-19 Thread Jayadevan M
isn't much since json is an already serialized format). OK. That explains it. I was wondering why we have quite a few functions under pg_catalog and just a few in the documentation. Thank you. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only

[GENERAL] json functions

2013-06-18 Thread Jayadevan M
Hi, I have PostgreSQL 9.2.1. I can see a few json functions under pg_catalog, json_send, for example. But I can't find any documentation. Am I missing something? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom

[GENERAL] Oracle to PostgreSQL replication with Goldengate

2012-11-11 Thread Jayadevan M
quite a few cases - such as trying out the application on PostgreSQL before really cutting over from an Oracle database, may be running reports off PostgreSQL and so on. Regards, Jayadevan

Re: [GENERAL] Data sets for download

2012-10-25 Thread Jayadevan M
://linux.dell.com/dvdstore/ It can generate testdata with a specific scale and it works well with Postgres. Thank you. Will try these. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain

[GENERAL] Data sets for download

2012-10-24 Thread Jayadevan M
not simple. Anything similar - the typical warehouse/customer/order tables or emp/dept/project ? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material

[GENERAL] Replication - doubts

2012-10-17 Thread Jayadevan M
- in this case the slave is almost uptodate If I set up a slave using the archived WAls and set hot_standby on in the slave, will I be able to read from the slave? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom

Re: [GENERAL] PostgreSQL data loads - turn off WAL

2012-09-25 Thread Jayadevan M
). This url might also help - http://www.postgresql.org/docs/9.1/static/populate.html Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have

Re: [GENERAL] How to isolate the result of SELECT's?

2012-03-18 Thread Jayadevan M
option. http://www.postgresql.org/docs/current/static/explicit-locking.html Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-12 Thread Jayadevan M
of these features will become part of the 'core' soon. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-11 Thread Jayadevan M
in the development/test environment. http://docs.oracle.com/cd/B28359_01/server.111/e12253/dbr_intro.htm Won't something like this be useful in PostgreSQL? It will let us mimic the production environment load and analyze it better. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any

Re: [GENERAL] Help on PostgreSQL

2011-10-12 Thread Jayadevan M
. That is what we did. We used ora2pg for database migration and orafce (http://pgfoundry.org/projects/orafce/) to minimize code changes. Since we did not have many procedures/packages it worked very well. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment

Re: [GENERAL] Conceptual Architecture

2011-10-12 Thread Jayadevan M
/content/postgresql/InsideBufferCache.pdf Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact

Re: [GENERAL] Materialized views in Oracle

2011-09-22 Thread Jayadevan M
is not desirable. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all

Re: [GENERAL] How to convert ByteA to Large Objects

2011-09-16 Thread Jayadevan
Thank you. We are working on an Oracle to PostgreSQL migration project. BLOB columns got converted to BYTEA in PostgreSQL and we ran into problems. We used this to convert the data type to OID. Thank you. -- View this message in context:

Re: [GENERAL] How to convert ByteA to Large Objects

2011-09-16 Thread Jayadevan M
been inserted. Switching to file storage will mean quite a bit of changes at the code level, and a lot of testing of the products that runs fine on Oracle now. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom

Re: [GENERAL] Complex query question

2011-09-07 Thread Jayadevan M
in (select min(id) from myt group by loc_title) order by loc_title; id | loc_title | loc_value | loc_unit +---+---+-- 1 | AA|80 | 10 3 | BB|80 | 10 (2 rows) Regards, Jayadevan DISCLAIMER: The information in this e-mail and any

Re: [GENERAL] COPY FROM how long should take ?

2011-08-26 Thread Jayadevan M
checked the log file for errors,corrected the data issues in the source table (Oracle) and it finished the load without issues. Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential

Re: [GENERAL] Getting value of bind variables

2011-08-22 Thread Jayadevan M
' and log_time '20110818') and it shows .AND ( CUSINDINF.MEMDOB )= ($4) Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you

[GENERAL] Getting value of bind variables

2011-08-19 Thread Jayadevan M
to debug5 in postgresql.conf for all logging options. But what is the 'correct' approach? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you

Re: [GENERAL] PostgreSQL documentation on kindle - best practices?

2011-04-04 Thread Jayadevan M
. It is not a good idea to try and read pdf files in Kindle. You have to send the pdf file to kindleusername@free.kindle.com Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential

Re: [GENERAL] How to restore from backup to 8.4.3 server using 9.0 dump/restore

2010-12-16 Thread Jayadevan M
it starts; Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all

Re: [GENERAL] gap between error and cure

2010-11-22 Thread Jayadevan M
-- postgres (1 row) postgres=# show hba_file; hba_file --- /usr/local/pgsql/data/pg_hba.conf (1 row) Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain

Re: [GENERAL] Debug advice when postgres connection maxing out

2010-11-22 Thread Jayadevan M
/functions-admin.html Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy

Re: [GENERAL] Survey on backing up unlogged tables: help us with PostgreSQL development!

2010-11-19 Thread Jayadevan M
about what goes into WAL tells me that the permanent table data will be replicated all right even if the temp tables are not logged. Is that right? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed

Re: [GENERAL] Survey on backing up unlogged tables: help us with PostgreSQL development!

2010-11-18 Thread Jayadevan M
, such as session statues, application logs, etc. One doubt - if the tables are 'unlogged' , will the DMLs against these still be replicated to a slave? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom

Re: [GENERAL] Survey on backing up unlogged tables: help us with PostgreSQL development!

2010-11-18 Thread Jayadevan M
an insert into an 'unlogged' table, what happens to that? Will that be replicated in the slave (using PostgreSQL's inbuilt replication)? Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain

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

2010-10-14 Thread Jayadevan M
,'-',''),' ','') = '1333'; name 13-333-333 (1 row) postgres=# select * from myt where translate(translate(name,'-',''),' ','') = '12344'; name - 12 3-44 (1 row) Regards, Jayadevan DISCLAIMER: The information in this e-mail and any attachment is intended only

  1   2   >