[GENERAL] Help Needed

2007-11-27 Thread Amit
main problem is how the default database can be created and restore of the data can be done automatically using some script or so. Any suggestion or idea are welcome. Thanks in advance. Regards, Amit

[GENERAL] Help Needed

2007-11-27 Thread Amit
main problem is how the default database can be created and restore of the data can be done automatically using some script or so. Any suggestion or idea are welcome. Thanks in advance. Regards, Amit

[GENERAL] Is BDR support distributed table on slave nodes with ACID and join support.

2015-07-17 Thread Amit Bondwal
r and rest of slave nodes, how can I take backup of this distributed database to one of my other server or backup location. Please suggest me what would be the best approch for this. -- Thanks & Regards, Amit Bondwal

Re: [GENERAL] Is BDR support distributed table on slave nodes with ACID and join support.

2015-07-17 Thread Amit Bondwal
Thanks you very much Craig for clearing these facts and sorry for mail sent only to you by mistake. -- Thanks & Regards, Amit Bondwal On Fri, Jul 17, 2015 at 6:19 PM, Craig Ringer wrote: > On 17 July 2015 at 19:37, Amit Bondwal wrote: > > Thank you very much all of you for q

[GENERAL] Postgres SSL connection without client certificates.

2015-07-27 Thread Amit Bondwal
on client machine? I am using linux as a clinet machine and want to connect through command line, without client certificate in encrypted format or on SSL. What should I do? -- Thanks & Regards, Amit Bondwal Contact me at +91-999-0235-948

Re: [GENERAL] Postgres SSL connection without client certificates.

2015-07-27 Thread Amit Bondwal
Thanks you very much Adrian for clearing my confusion. On Mon, Jul 27, 2015 at 7:24 PM, Adrian Klaver wrote: > On 07/27/2015 12:48 AM, Amit Bondwal wrote: > >> Hi Everyone. >> >> I am able to setup postgresql with TLS v1.2 with client certificate. I >> used b

[GENERAL] Postgresql 9.3 hotstandby replication error, icorrect checksome in control file

2015-08-21 Thread Amit Bondwal
debian squeeze or it was on debian wheezy on different hardwares or VPS servers. Is there any different way to do replication to avoid this issue? or how can I resolve this issue. -- Regards Amit Bondwal

[GENERAL] Re: Postgresql 9.3 hotstandby replication error, icorrect checksome in control file

2015-08-21 Thread Amit Bondwal
8-21 15:40:20 IST [21561-1] FATAL: incorrect checksum in control file It gives the error "database system identifier differs between the primary and standby". On Fri, Aug 21, 2015 at 3:26 PM, Amit Bondwal wrote: > Hi everyone, > > I am trying to setup postgresql 9.3 hot

Re: [GENERAL] Re: Postgresql 9.3 hotstandby replication error, icorrect checksome in control file

2015-08-21 Thread Amit Bondwal
Michael, Thanks for your reply, I found the issue, the person who setup OS mix up some 64 and 32 bit package. I am starting it again. Thanks again. On Fri, Aug 21, 2015 at 5:12 PM, Michael Paquier wrote: > > > On Fri, Aug 21, 2015 at 7:56 PM, Amit Bondwal > wrote: > >> 20

Re: [GENERAL] [HACKERS] Change in order of criteria - reg

2016-06-01 Thread Amit Langote
marking the costs could have avoided that (as explained above). Note that I am not suggesting that ordering quals in query by their perceived cost is the solution. Keep optimizer informed by setting costs appropriately and it will do the right thing more often than not. :) Thanks, Amit -- Sent

Re: [GENERAL] How the Planner in PGStrom differs from PostgreSQL?

2016-11-17 Thread Amit Langote
san will be better able to explain and correct if the above rough sketch is not exactly accurate) Thanks, Amit [1] https://www.postgresql.org/docs/9.6/static/runtime-config-query.html#RUNTIME-CONFIG-QUERY-CONSTANTS -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] Exclusively locking parent tables while disinheriting children.

2015-12-01 Thread Amit Langote
ren of parent. Having failed to do that, it encounters the error in question when further along it tries to find parent's attributes in somechild which are no longer there (remember, other session just disinherited parent). That perhaps needs some fixing. I may be missing though. Thanks, Amit

[GENERAL] BDR error while adding 3rd node to cluster

2015-12-21 Thread Amit Bondwal
recreate it but same error. I also tried to connect to 2nd node as external dsn but same error. I am able to access all three nodes to each other using psql. -- Regards Amit Bondwal

Re: [GENERAL] BDR error while adding 3rd node to cluster

2015-12-21 Thread Amit Bondwal
On Tue, Dec 22, 2015 at 10:05 AM, Craig Ringer wrote: > select * from bdr.bdr_connections; > Hi Craig, Thanks for your reply, These commands shows nothing on 3rd node. *on node3:-*hakuna=# select * from bdr.bdr_nodes; node_sysid | node_timeline | node_dboid | node_status | node_name | node_

Re: [GENERAL] BDR error while adding 3rd node to cluster

2015-12-22 Thread Amit Bondwal
Hi Craig, I remove all the bdr packages and reinstall it and setup again the BDR cluster, still facing the same issue on 3rd node. On Tue, Dec 22, 2015 at 10:58 AM, Amit Bondwal wrote: > > On Tue, Dec 22, 2015 at 10:05 AM, Craig Ringer > wrote: > >> select * from b

Re: [GENERAL] BDR error while adding 3rd node to cluster

2015-12-25 Thread Amit Bondwal
015 at 17:00, Amit Bondwal wrote: > > >> I remove all the bdr packages and reinstall it and setup again the BDR >> cluster, still facing the same issue on 3rd node. >> > > At this point I'd really need to see the steps taken, in detail, to get to > that point fr

Re: [GENERAL] pg_restore casts check constraints differently

2016-03-30 Thread Amit Langote
stdb $ pg_dump srcdb | psql destdb $ psql destdb psql (9.6devel) Type "help" for help. destdb=# \d List of relations Schema | Name | Type | Owner +--+---+--- public | p| table | amit (1 row) destdb=# CREATE TABLE c (LIKE p); CREATE TABLE destd

[GENERAL] wal files restoration

2007-06-06 Thread Amit Jain
appreciate your help take it on urgent basis plz. Amit Jain. iBoss Tech Solution Ltd. sec-63 Noida.

[GENERAL] Returning columns from different tables, in plpgsql function

2007-12-07 Thread Amit Phatarphekar
Hello - I'm trying to findout a better solution to this approach. Currently if I have to return columns from multiple tables, I have to define my own TYPE and then return SETOF that type in the function. I've provided an example below. Now, if I have to add a column to the select qu

[GENERAL] returning columns from different tables, in plpgsql function

2007-12-07 Thread Amit Phatarphekar
Hello - I'm trying to findout a better solution to this approach. Currently if I have to return columns from multiple tables, I have to define my own TYPE and then return SETOF that type in the function. I've provided an example below. Now, if I have to add a column to the select qu

Re: [GENERAL] Is it possible to create an index without keeping the indexed data in a column?

2014-07-31 Thread Amit Langote
.16.08 rows=10 width=0) Index Cond: (((a)::text || (b)::text) ~~ '%c4c%'::text) Planning time: 0.361 ms (5 rows) -- Amit -- 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] Is it possible to create an index without keeping the indexed data in a column?

2014-07-31 Thread Amit Langote
On Fri, Aug 1, 2014 at 2:50 PM, Amit Langote wrote: > > Not sure exactly if it applies here; Re-reading the OP again, perhaps it doesn't. Sorry about the noise -- Amit -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscri

Re: [GENERAL] Where should I post 3rd party product announcements?

2014-10-14 Thread Amit Langote
't come through, > presumably because it was considered to be spam. > > Where would be a more appropriate place to make such an announcement? > Take a look at this page: http://www.postgresql.org/list/ pgsql-announce is the list you are looking for. -- Amit -- Sent via pgsql-gen

Re: [GENERAL] Unable to reload postgresql.conf without restarting

2013-01-04 Thread Amit Kapila
ese parameters are USERSET parameters, so no need to change config file and reload or restart. With Regards, Amit Kapila. -- 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] Counterintuitive locking behavior

2013-01-05 Thread Amit kapila
ct, then the rows will be locked during whole transaction irrespective of the fact that they will not be updated. With Regards, Amit Kapila. -- 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] Counterintuitive locking behavior

2013-01-05 Thread Amit kapila
On Sunday, January 06, 2013 11:10 AM Amit kapila wrote: On Sunday, January 06, 2013 7:48 AM Chris Travers wrote: >> Is there a reason why we don't do locking this way? (i.e. where on UPDATE >> foo, all rows selected from foo during the >> update are locked unless the

Re: [GENERAL] reducing number of ANDs speeds up query

2013-01-11 Thread Amit kapila
You can try once with below query: Select * from (SELECT a.id,b.value FROM table_a a, table_b b WHERE ... AND ... ) X where X.value=...; If this doesn't work can you send the Explain .. output for both queries(the query you are using and the query I have suggested) With Regards, Amit Kapila.

Re: [GENERAL] Passing dynamic parameters to a table-returning function

2013-02-05 Thread Amit Kapila
om columns in the database as the > parameters of a set-returning function from which I want to select *. Can you try with RETURN NEXT syntax. For example, refer below link: http://www.postgresql.org/docs/9.2/static/plpgsql-control-structures.html#PL PGSQL-STATEMENTS-RETURNING With Regards,

Re: [GENERAL] [BUGS] BUG #7850: left outer join is not working or I didn't contruct the query properly

2013-02-05 Thread Amit Kapila
;dim_id" IS NULL > Line: 1  > > [Executed: 2/4/13 11:07:08 PM PST ] [Execution: 0/ms] > > > exception. > > Is there anything i am missing. Why the query is different in Exception? Can you try with SELECT tbl.id, tbl.day, tbl.week, t

Re: [GENERAL] Join query query

2013-02-14 Thread Amit Kapila
ght, then you can try with using DISTINCT operator: http://www.postgresql.org/docs/9.2/static/sql-select.html#SQL-DISTINCT With Regards, Amit Kapila. -- 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] bug, bad memory, or bad disk?

2013-02-15 Thread Amit Kapila
on, will this problem remains. Is there any chance that the block gets corrupted due to hardware problem? 2. missing clog files - how did you find missing clog files, is any operation got failed or just an observation? Do you see any problems in system due to it? With Regards, Amit Kapila. -- 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] bug, bad memory, or bad disk?

2013-02-15 Thread Amit Kapila
> -Original Message- > From: Merlin Moncure [mailto:mmonc...@gmail.com] > Sent: Friday, February 15, 2013 7:56 PM > To: Amit Kapila > Cc: Ben Chobot; PostgreSQL General > Subject: Re: [GENERAL] bug, bad memory, or bad disk? > > On Fri, Feb 15, 2013 at 8:08

Re: [GENERAL] Questions: How to configure PostgreSQL at the beginning ....

2013-02-19 Thread Amit Kapila
server should start with Pg_ctl.exe start -D data_dir Where data_dir is the path where you have created your database. With Regards, Amit Kapila. -- 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_stat_get_last_vacuum_time(): why non-FULL?

2013-04-07 Thread Amit Kapila
llowed on that relation. Most of admin care about this point, because they don't want to stop operations for background garbage collect. VACUUM FULL is only done in rare cases when the relation size has grown too bigger than it's actual Contents. With Regards, Amit Kapila. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Confusing comment in xlog.c or am I missing something?

2013-05-01 Thread Amit Langote
I was just going through the xlog.c and I came across following which confused me: Given, src/include/access/xlogdefs.h #define XLogSegsPerFile (((uint32) 0x) / XLogSegSize) #define XLogFileSize(XLogSegsPerFile * XLogSegSize) Also, typedef struct XLogRecPtr { uint32

Re: [GENERAL] Position() Bug ? In PostgreSQL 9.2

2013-05-02 Thread Amit Langote
> position > -- > 1 > (1 row) > > Kindly let me know, if anything i miss here. > > Regards, > Dinesh > manojadinesh.blogspot.com -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Position() Bug ? In PostgreSQL 9.2

2013-05-02 Thread Amit Langote
something similar, it returns first index (which is 1) of the main string (haystack!). Although this does not answer if it's a bug or not, I tend to think it is deliberate. -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] PAM implementation in PG 9.2.3

2013-05-08 Thread Amit Langote
r, if you specify -W option, psql won't connect before it accepts password. You can try this (and see that no authentication failure is logged) I think log entries just mean the authentication has failed with PAM-specific error message. -- Amit Langote -- Sent via pgsql-general ma

Re: [GENERAL] PAM implementation in PG 9.2.3

2013-05-12 Thread Amit Langote
g is a bug in PAM authentication code in the backend that needs to resolved. This has been reported on pgsql-hackers. -- Amit Langote -- 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] Comunication protocol

2013-05-17 Thread Amit Langote
you understand distinct phases of connection and subsequent operation over the established connection. -- Amit Langote -- 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] Why does row estimation on nested loop make no sense to me

2013-05-17 Thread Amit Langote
On Sat, May 18, 2013 at 1:25 AM, Jeff Amiel wrote: > On most nested loops that I do explain/explain analyze on, the row estimation > for the nested-loop itself is a product of the inner nodes of the nested loop. > However in this case, I am stumped! > > explain > select era.child_entity from en

Re: [GENERAL] Why does row estimation on nested loop make no sense to me

2013-05-17 Thread Amit Langote
On Sat, May 18, 2013 at 1:47 AM, Jeff Amiel wrote: > > > > > - Original Message ----- > From: Amit Langote > To: Jeff Amiel > Cc: "pgsql-general@postgresql.org" > Sent: Friday, May 17, 2013 11:37 AM > Subject: Re: [GENERAL] Why does row estimati

Re: [GENERAL] Why does row estimation on nested loop make no sense to me

2013-05-17 Thread Amit Langote
ted to the fact that the nested-loop > row estimation does not appear to be derived from the nodes below it - it is > off by orders of magnitude. I've never seen this before. > That aside, yes - I did analyze and tweak stats target during experimentation > - no change. Did you

Re: [GENERAL] Why does row estimation on nested loop make no sense to me

2013-05-20 Thread Amit Langote
c/row-estimation-examples.html It also refers where in source code these table size estimations are done. Hope this helps. -- Amit Langote -- 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] Why does row estimation on nested loop make no sense to me

2013-05-20 Thread Amit Langote
I also found one other discussion which has similar issues addressed: http://postgresql.1045698.n5.nabble.com/Bogus-nestloop-rows-estimate-in-8-4-7-td5710254.html -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Why does row estimation on nested loop make no sense to me

2013-05-20 Thread Amit Langote
ould like to know if you still get the same row estimates (after explain) and also if possible, the value that is computed from that formula. Do they resemble each other? -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscript

Re: [GENERAL] [PERFORM] Very slow inner join query Unacceptable latency.

2013-05-21 Thread Amit Kapila
65.81 > rows=580 width=8) > Filter: ((algorithm)::text = 'SMAT'::text) > Does anyone have suggestions about how to speed it up? Could you please once trying Analyzing both tables and then run the query to check which plan it uses: Analyze SARS_ACTS; An

Re: [GENERAL] [PERFORM] Very slow inner join query Unacceptable latency.

2013-05-23 Thread Amit Kapila
n future Hash Join might be the best and cheapest way. Can you try reproducing it with small data or else can you attach your schema and data for the tables/indexes used in query? With Regards, Amit Kapila. -- 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_receivexlog 9.2 client working with 9.1 server?

2013-05-26 Thread Amit Langote
27;s okay using 9.2 pg_receievexlog with a 9.1 server. -- Amit Langote -- 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] There are many processes created and died frequently during PostgreSQl idle

2013-05-26 Thread Amit Langote
ovacuum launcher, which periodically forks autovacuum worker processes to perform vacuum activity. You might want to read more about them here: http://www.postgresql.org/docs/9.2/static/routine-vacuuming.html#AUTOVACUUM -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql

Re: [GENERAL] Human readable or full text of xlog (pg_xlog) for vs 9.2

2013-05-26 Thread Amit Langote
r do you have a backup you could restore to using PITR? -- Amit Langote -- 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] Human readable or full text of xlog (pg_xlog) for vs 9.2

2013-05-26 Thread Amit Langote
e would have to wait for others to reply on this thread to point out any others means to recover your data, if any. -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Seq Scan cost shown to be (cost=10000000000.00..10000000001.10)

2013-05-27 Thread Amit Langote
nd of default max or something like that for such abnormal cases? -- Amit Langote -- 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] Seq Scan cost shown to be (cost=10000000000.00..10000000001.10)

2013-05-27 Thread Amit Langote
sets the start cost to the high value (100). > Oh, okay, thanks! -- Amit Langote -- 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] Seq Scan cost shown to be (cost=10000000000.00..10000000001.10)

2013-05-27 Thread Amit Langote
> When one uses “enable_” settings to adjust planner behavior, PostgreSQL > just sets really high costs for the operations affected (like the one you > see). > > As SeqScan is the only possible way to execute your query, it is still > choosen. > I get it. Thanks! -- Amit L

Re: [GENERAL] How to check if Postgresql files are OK

2013-05-27 Thread Amit Langote
g is to have > frequent, tested, backups. > How does one validate a backup? Is there any generally practiced way of doing that? Or what do you mean when you say "tested" backups? -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make change

[GENERAL] More buffers used than a relation's relpages

2013-06-03 Thread Amit Langote
|3548 | 3547 abc_2_idx|3209 | 3209 ... ... -- Amit Langote -- 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] More buffers used than a relation's relpages

2013-06-03 Thread Amit Langote
On Tue, Jun 4, 2013 at 12:17 PM, Jeff Janes wrote: > On Monday, June 3, 2013, Amit Langote wrote: >> >> Hello, >> >> In what cases can a relation use more buffers (in shared memory) than >> its pg_class.relpages? > > > I think relpages only counts page

Re: [GENERAL] More buffers used than a relation's relpages

2013-06-04 Thread Amit Langote
On Tue, Jun 4, 2013 at 10:04 PM, Andres Freund wrote: > On 2013-06-04 11:29:44 +0900, Amit Langote wrote: >> In what cases can a relation use more buffers (in shared memory) than >> its pg_class.relpages? > > relpages is primarily updated by (auto-)vacuum, (auto-)analyze, so

Re: [GENERAL] Migration from DB2 to PostgreSQL

2013-06-19 Thread Amit Langote
o > write a function that just ignores the third argument. > Just wondering: If this particular function is to be used repeatedly in a single query, would the cost of having a wrapper function around the original function be too large? For example, if this function appears in a WHERE clause

Re: [GENERAL] Migration from DB2 to PostgreSQL

2013-06-19 Thread Amit Langote
Hi, On Thu, Jun 20, 2013 at 10:27 AM, Chris Angelico wrote: > On Thu, Jun 20, 2013 at 11:10 AM, Amit Langote > wrote: >> If this particular function is to be used repeatedly in a single >> query, would the cost of having a wrapper function around the original >> fu

Re: [GENERAL] Migration from DB2 to PostgreSQL

2013-06-19 Thread Amit Langote
On Thu, Jun 20, 2013 at 10:54 AM, Chris Angelico wrote: > On Thu, Jun 20, 2013 at 11:35 AM, Amit Langote > wrote: >> On Thu, Jun 20, 2013 at 10:27 AM, Chris Angelico wrote: >>> If your wrapper function is written in SQL and is trivial (eg ignore >>> the third pa

Re: [GENERAL] Migration from DB2 to PostgreSQL

2013-06-19 Thread Amit Langote
On Thu, Jun 20, 2013 at 11:10 AM, Chris Angelico wrote: > On Thu, Jun 20, 2013 at 12:09 PM, Amit Langote > wrote: >> Umm, my bad! I almost forgot I could write pure SQL function bodies. >> Although, why does following happen? (sorry, a 8.4.2 installation) : >> >>

Re: [GENERAL] Archiving and recovering pg_stat_tmp

2013-06-20 Thread Amit Langote
d/1718942738eb65c8407fcd864883f...@fuzzy.cz When I checked on my 9.4dev installation, I found $PGDATA/pg_stat and there were per database .stat files. -- Amit Langote -- 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] Archiving and recovering pg_stat_tmp

2013-06-20 Thread Amit Langote
ts across server restarts, which, might even be applicable to a PITR, as far as I can understand. This would need some testing, though, to be sure that it is the case. -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscript

Re: [GENERAL] Archiving and recovering pg_stat_tmp

2013-06-20 Thread Amit Langote
On Thu, Jun 20, 2013 at 8:32 PM, Amit Langote wrote: > On Thu, Jun 20, 2013 at 6:05 PM, Sameer Thakur wrote: >>>Documentation mentions following: >> Thanks, but how does this relate to statistics recovery wrt PITR? > > Upon clean server shutdown, you have the statisti

Re: [GENERAL] Archiving and recovering pg_stat_tmp

2013-06-20 Thread Amit Langote
s, of pg_stat/*.stat), though I am not sure if that would be correct. I doubt if WAL replay (as in a consistent recovery mechanism :-) ) accounts for the stats. I guess stats are not WAL logged (like changes to table data) since they are managed using temporary files in pg_stat_temp and hence may not be recoverable using WAL replay to a particular state using PITR. but I may be wrong. Thoughts? -- Amit Langote -- 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] File System backup

2013-06-21 Thread Amit Langote
sue it? Is that after OS restarts?) Did you, by any chance, use "restart" whereas you should have used "start" assuming you are using pg_ctl for the same? Issuing "restart" requires that you should already have server running (and that means postmaster.pid should be the

Re: [GENERAL] Migration from DB2 to PostgreSQL

2013-06-21 Thread Amit Langote
- > > select to_oid('testdata'); > > Can anyone tell me that how I can implement above function for conversion? > Sachin, check if this link is related: http://stackoverflow.com/a/10139455/683402 + Here (from official PG docs): http://www.postgresql.org/docs/9.2/sta

Re: [GENERAL] Archiving and recovering pg_stat_tmp

2013-06-25 Thread Amit Langote
Surprisingly it > works with no complaints about wrong pgstat.stats > Do you have only one archive set up? What do you mean when you mention "backup1" archive? What kind of complaints did you see when you did in past? I am not aware of such errors; am I missing some? -- Amit Langote -- 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] Archiving and recovering pg_stat_tmp

2013-06-25 Thread Amit Langote
tats reporting tool (like pg_statsinfo) would be the only way to preserve such historic (snapshots-like) information about those statistics. Server itself doesn't have any mechanism to preserve any historical information like those stats, am I right in saying that? -- Amit Langote --

Re: [GENERAL] How can you get "WAL segment has already been removed" when doing synchronous replication ?!

2013-07-12 Thread Amit Langote
l_keep_segments ? > > I know that I can increase wal_keep_segments to "solve" it, but > shouldn't it be *impossible* to happen with synchronous replication? > After all - all commits should wait for slave to be 100% up to date! > Is it possible that xlog recycling might have

Re: [GENERAL] Full text search

2013-07-12 Thread Amit Langote
? That would be helpful. -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] maintenance_work_mem and CREATE INDEX time

2013-07-22 Thread Amit Langote
anyway. Does that make sense? -- Amit Langote -- 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] maintenance_work_mem and CREATE INDEX time

2013-07-23 Thread Amit Langote
On Tue, Jul 23, 2013 at 1:11 PM, Amit Langote wrote: > Hello, > > While understanding the effect of maintenance_work_mem on time taken > by CREATE INDEX, I observed that for the values of > maintenance_work_mem less than the value for which an internal sort is > performed,

Re: [GENERAL] [HACKERS] maintenance_work_mem and CREATE INDEX time

2013-07-23 Thread Amit Langote
On Wed, Jul 24, 2013 at 6:02 AM, Jeff Janes wrote: > On Tue, Jul 23, 2013 at 1:23 AM, Amit Langote wrote: >> On Tue, Jul 23, 2013 at 1:11 PM, Amit Langote >> wrote: >>> Hello, >>> >>> While understanding the effect of maintenance_work_mem on time take

Re: [GENERAL] [HACKERS] maintenance_work_mem and CREATE INDEX time

2013-07-23 Thread Amit Langote
On Wed, Jul 24, 2013 at 11:30 AM, Amit Langote wrote: > On Wed, Jul 24, 2013 at 6:02 AM, Jeff Janes wrote: >> If you are using trace_sort to report that, it reports the switch as >> happening as soon as it runs out of memory. >> >> At point, all we have been doing is

Re: [GENERAL] [HACKERS] maintenance_work_mem and CREATE INDEX time

2013-07-23 Thread Amit Langote
On Wed, Jul 24, 2013 at 3:20 AM, Jeff Janes wrote: > On Mon, Jul 22, 2013 at 9:11 PM, Amit Langote wrote: >> Hello, >> >> While understanding the effect of maintenance_work_mem on time taken >> by CREATE INDEX, I observed that for the values of >> maintenance

Re: [GENERAL] Fastest Index/Algorithm to find similar sentences

2013-07-25 Thread Amit Langote
development phase, but you could give it a try and see if it can perform better where pg_trgm can not. -- Amit Langote -- 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] How to do incremental / differential backup every hour in Postgres 9.1?

2013-07-26 Thread Amit Langote
7;t need to manually move any of the files in pg_xlog/, PostgreSQL automatically gets rid of or recycles the files. > 4. Do I need to backup the .backup files in the archive folder or just the > 16,384KB WAL files? > Your archiving setup (that is archive_command) should take care of all t

Re: [GENERAL] async streaming and recovery_target_timeline=latest

2013-07-28 Thread Amit Langote
there shouldn't have been like 0010146A0001 instead of 000F146A0001. This patch recently applied to 9.1.9 (but not in any stable release so far) solves this problem as far as I can see. Try and see if you can patch it: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=424cc31a3785bd01108e6f4b20941c6442d3d2d0 -- Amit Langote -- 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] Snapshot backups

2013-07-28 Thread Amit Langote
DO location (identified as "START WAL LOCATION:" field in the backup_label file.) While you are reading the code, you can read the comment above the function read_backup_label() in src/backend/access/transam/xlog.c -- Amit Langote

Re: [GENERAL] SQL for multimedia retrieval

2013-07-29 Thread Amit Langote
tore and retrieve the indexed content using PostgreSQL. -- Amit Langote -- 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] [HACKERS] maintenance_work_mem and CREATE INDEX time

2013-07-29 Thread Amit Langote
Hi Jeff, On Tue, Jul 30, 2013 at 3:25 AM, Jeff Janes wrote: > On Tue, Jul 23, 2013 at 10:56 PM, Amit Langote > wrote: >> On Wed, Jul 24, 2013 at 3:20 AM, Jeff Janes wrote: >>> >>> The heap structure used in external sorts is cache-unfriendly. The >>&

[GENERAL] Bottlenecks with large number of relation segment files

2013-08-04 Thread Amit Langote
"pgbench -i -s 3500" would be. May the routines in fd.c become bottleneck with a large number of concurrent connections to above database, say something like "pgbench -j 8 -c 128"? Is there any other place I should be paying attention to? -- Amit Langote -- Sent via pgsql-

Re: [GENERAL] Bottlenecks with large number of relation segment files

2013-08-05 Thread Amit Langote
On Mon, Aug 5, 2013 at 5:01 PM, KONDO Mitsumasa wrote: > Hi Amit, > > > (2013/08/05 15:23), Amit Langote wrote: >> >> May the routines in fd.c become bottleneck with a large number of >> concurrent connections to above database, say something like "pgbench

[GENERAL] Logging/Viewing parameters of a prepared statement

2008-03-30 Thread Amit Phatarphekar
the db. I'm trying to achieve that on postgres. I've configured the log_statement='all' in postgresql.conf. Thanks Amit

Re: [GENERAL] logging statements in PostgreSQL

2013-09-25 Thread Amit Langote
el query plans are logged. http://www.postgresql.org/docs/devel/static/auto-explain.html -- Amit Langote -- 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] Why there are no max_wal_receivers

2013-10-06 Thread Amit Langote
the primary server may be running multiple WAL senders, there is only one WAL receiver on each standby server. -- Amit Langote -- 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] Why there are no max_wal_receivers

2013-10-07 Thread Amit Langote
Is > that right? > Yes. It would be used for the duration of backup. But, it maybe better to just reserve one slot for pg_basebackup if you intend to use it often instead of editing postgresql.conf every time you need to take backup. -- Amit -- Sent via pgsql-general mailing lis

[GENERAL] Links in docs broken

2013-10-18 Thread Amit Langote
Hi, In 9.2 docs, the first link (i18ngurus) in the further reading section here: http://www.postgresql.org/docs/9.2/static/multibyte.html seems to be broken. Should it be updated/removed? (I see it's removed in 9.3 docs) -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-ge

[GENERAL] A client and server encoding question

2013-10-22 Thread Amit Langote
EATE TABLE Time: 31.344 ms postgres=# \dt List of relations Schema | Name | Type | Owner +-+---+--- public | id_äß | table | amit (1 row) postgres=# SET client_encoding TO UTF8; SET Time: 1.007 ms postgres=# \dt List of relations Schema |

Re: [GENERAL] A client and server encoding question

2013-10-22 Thread Amit Langote
On Tue, Oct 22, 2013 at 7:00 PM, Albe Laurenz wrote: > Amit Langote wrote: >> With a server initdb'd with UTF8 encoding , if I create a table with a >> client using LATIN1 encoding and later try to work with the relation >> with a client using UTF8 encoding (both the

[GENERAL] GIN fast update technique and work_mem

2013-10-24 Thread Amit Langote
maintenance_work_mem? Or are these things unrelated? -- Amit -- 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] GIN fast update technique and work_mem

2013-10-24 Thread Amit Langote
On Thu, Oct 24, 2013 at 7:26 PM, Andres Freund wrote: > On 2013-10-24 18:40:46 +0900, Amit Langote wrote: >> While going through the documentation for GIN fast update technique, I read - >> >> "...or if the pending list becomes too large (larger than work_mem), >&

Re: [GENERAL] pg_trgm module: no convertion into Trigrams on one side when comparing

2013-11-13 Thread Amit Langote
rows) -- You could go ahead and add more trigrams that you'd want result to contain. postgres=# insert into foo values ('gabcddfg'); INSERT 0 4 postgres=# select * from foo where a LIKE '%abc%dfg%'; a -- gabcddfg (1 row) Is this what you want? -- Amit -- 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_trgm module: no convertion into Trigrams on one side when comparing

2013-11-14 Thread Amit Langote
On Thu, Nov 14, 2013 at 9:05 PM, Janek Sendrowski wrote: > Hi Amit, > > Thanks for your answer. > > My issue is that I still need a ranking like the similarity when comparing > trigrams. > I'm working on a similarity search, which determindes similiar sentences from

Re: [GENERAL] unexpected pageaddr error in db log

2013-12-18 Thread Amit Langote
nsistent > recovery state reached at 4/32CCAA88 > [2013-12-19 04:14:33.909 CST 18332 52b2021c.479c 4 0]LOG: database > system is ready to accept read only connections > [2013-12-19 04:14:34.059 CST 18340 52b2021c.47a4 23 0]LOG: > unexpected pageaddr 3/5A00 in log segme

Re: [GENERAL] Bugs revealed by static code analysis

2013-12-25 Thread Amit Langote
ttp://www.postgresql.org/message-id/caaswcxe2rqx66wzw10kmehgb1c+hzwfeavvm-vprik6ppfa...@mail.gmail.com http://www.postgresql.org/message-id/caaswcxekevpji03mjzdy6auo0x7quewx5yzqhsnp7gj1bao...@mail.gmail.com http://www.postgresql.org/message-id/CAASwCXfgFsMt31c1srj=fszbz5cc3ahjckfu3kznxds7ogq...@mail.gmail.com -

Re: [GENERAL] How to specify/mock the statistic data of tables in PostgreSQL

2014-01-10 Thread Amit Langote
es, using random sampling), I guess you'd need to go through its code in the source file "src/backend/commands/analyze.c". -- Amit Langote -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

  1   2   >