Re: [GENERAL] regarding table migration from sql to postgres with runmtk.sh

2016-03-09 Thread Raghavendra
gt; at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > > ​Looks like the driver issue. ./runMTK.sh​ is EnterpriseDB Migrati

Re: [GENERAL] : Getting error while starting the server

2015-02-23 Thread Raghavendra
to address: Name or service not known ​I guess problem with your server name resolution. ​Its worth checking as said, using psql -h localhost or ping localhost. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

[GENERAL] Is it typo in pg_stat_replication column name in PG 9.4 ?

2014-05-18 Thread Raghavendra
in pg_stat_replication view column ? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] stand by is starting until I do some work in the primary

2014-02-22 Thread Raghavendra
the slave is OK and can be send read stmt.We have some monitor use this and some udf get the alived slave for client read.Now I find I'm wrong. Any comment? ​ Hot_standby parameter should be turned on at slave postresql.conf, is that checked ? --- Regards, Raghavendra EnterpriseDB

Re: [GENERAL] PostgreSQL 9.2.4 using large amount of memory

2014-01-28 Thread Raghavendra
Thanks On 27 Jan 2014 22:35, Bhushan Pathak bhushan.patha...@gmail.com wrote: Hello, We have recently shifted to postgresql version 9.2.4 from 9.1.3. After the migration, we observed that some of our delete queries on single table [which have triggers, which in turn call other functions] have

Re: [GENERAL] general questions

2014-01-08 Thread Raghavendra
On Thu, Jan 9, 2014 at 5:04 AM, Tom Lane t...@sss.pgh.pa.us wrote: CS DBA cs_...@consistentstate.com writes: 1) \d and schema's - I setup 2 schema's (sch_a and sch_b) - I added both schema's to my search_path - I created 2 tables: sch_a.test_tab and sch_b.test_tab If I do a \d with

Re: [GENERAL] what does the error mean?

2013-12-30 Thread Raghavendra
On Tue, Dec 31, 2013 at 12:20 AM, AI Rumman rumman...@gmail.com wrote: Hi, What does the error message mean? ERROR: unexpected chunk number 1 (expected 2) for toast value 179638221 in pg_toast_16700 Please let me know. Thanks. Well explained here...

Re: [GENERAL] How to rename the same column name in dozens of tables in Postgres?

2013-12-17 Thread Raghavendra
='public';) do /opt/PostgreSQL/9.3/bin/psql -p 5432 -U postgres -c alter table $i rename column $OLDCOLUMN to $NEWCOLUMN; done Replace the port,user,OLDCOLUMN, NEWCOLUMN and SCHEMA according to your requirement. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] How to rename the same column name in dozens of tables in Postgres?

2013-12-17 Thread Raghavendra
On Tue, Dec 17, 2013 at 2:23 PM, Raghavendra raghavendra@enterprisedb.com wrote: On Tue, Dec 17, 2013 at 1:29 PM, Stefan Schwarzer stefan.schwar...@unep.org wrote: Hi there, I have dozens of tables where I need to rename one column in each of these. Is there any generic way to do

Re: [GENERAL] Theory question

2013-11-12 Thread Raghavendra
that by the time checkpoint arrives there will be left only with f ew dirty pages, instead of having lots of dirty pages to carry out by i tself alone and cause I/O loaded . --- Regards, Raghavendra

Re: [GENERAL] pg_largeobjects

2013-09-11 Thread Raghavendra
(user1 can do this). I don't want to set lo_compat_privileges as then user3 (who can't SELECT from the services tables) would be able to read the large object. GRANT SELECT,UPATE ON LARGE OBJECT to user2; Will this work... --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

Re: [GENERAL] How to find out unused indexes?

2013-09-03 Thread Raghavendra
On Tue, Sep 3, 2013 at 11:36 AM, ascot.m...@gmail.com ascot.m...@gmail.comwrote: Hi, Can you please advise how to find out all unused indexes in PG? regards Below wiki link should help; under Unused Index section: http://wiki.postgresql.org/wiki/Index_Maintenance --- Regards, Raghavendra

Re: [GENERAL] PostgreSQL 9.2 Logging

2013-08-21 Thread Raghavendra
:01.146 IST [14152]: [9-1] db=,user= LOG: parameter log_min_duration_statement changed to 1s 2013-08-13 03:08:03.297 IST [26559]: [1-1] db=d1,user=postgres LOG: duration: 2159.281 ms statement: vacuum VERBOSE ANALYZE ; --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

Re: [GENERAL] Populating array of composite datatype

2013-08-07 Thread Raghavendra
[]); CREATE TABLE postgres=# insert into foo values (array[row(1,2)::abc]); INSERT 0 1 postgres=# insert into foo values (array[row('1','2')::abc]); INSERT 0 1 postgres=# select * from foo ; val --- {(1,2)} {(1,2)} (2 rows) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

Re: [GENERAL] Populating array of composite datatype

2013-08-07 Thread Raghavendra
On Wed, Aug 7, 2013 at 3:53 AM, Raghavendra raghavendra@enterprisedb.com wrote: postgres=# insert into foo values (array[row(1,2)::abc]); Also because all array members must be of the same db type, you can: insert into foo values (array[row(1,2)]::abc[]). This can be helpful

Re: [GENERAL] how to get UPDATEXML function in postgresql as it works in oracle

2013-07-30 Thread Raghavendra
On Tue, Jul 30, 2013 at 9:51 AM, saritha N saritha.0...@gmail.com wrote: Thanks for your reply Raghavendra, Thanks for the update. Request to mark postgresql group email while replying so it will help much if other's have better idea as well if any correction in my test case. Whatever you

Re: [GENERAL] how to get UPDATEXML function in postgresql as it works in oracle

2013-07-29 Thread Raghavendra
[]) = '{Infosys}'; UPDATE 1 postgres=# select * from xdata ; id | xmlcode + 1 | valuesEnterprisedb/values 1 | valuesWipro/values 1 | valuesInfosys-Bangalore/values (3 rows) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

[GENERAL] Re: Reply: Reply: [GENERAL] 回复: [GENERAL] Can't create plpython language

2013-07-19 Thread Raghavendra
language plpython2u; ERROR: could not load library /opt/PostgreSQL/93b2src/lib/postgresql/plpython2.so: /opt/PostgreSQL/93b2src/lib/postgresql/plpython2.so: undefined symbol: PyObject_Bytes Not certain on the error. Retake the test with above steps you should succeed. --- Regards, Raghavendra

[GENERAL] Re: [GENERAL] Re: Reply: Reply: [GENERAL] 回复: [GENERAL] Can't create plpython language

2013-07-19 Thread Raghavendra
On Fri, Jul 19, 2013 at 1:30 PM, John R Pierce pie...@hogranch.com wrote: On 7/19/2013 12:12 AM, Raghavendra wrote: ... its interesting, why your replies populate as distinct thread rather than of continuing one the mailer they are using isn't generating 'In-Reply-To' and/or 'References

[GENERAL] Re: Reply: [GENERAL] 回复: [GENERAL] Can't create plpython language

2013-07-16 Thread Raghavendra
On Mon, Jul 15, 2013 at 7:10 PM, guxiaobo1982 guxiaobo1...@qq.com wrote: It works with ActivePython 3.2.2.3, Thanks for notifying. but not ActivePython 2.7.2.5. No idea... :), I tried AP 3.2 with PG 9.2 PG 9.3B it went fine for me. --- Regards, Raghavendra EnterpriseDB Corporation Blog

Re: [GENERAL] Full text search

2013-07-12 Thread Raghavendra
-- Near to my house there's no any Pizza Hut restuarant I wont like pizza, but friends are crazy of it (2 rows) or with ILIKE select * from foo where v ilike '%hut%'; --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] function returning select result to JDBC

2013-07-12 Thread Raghavendra
/wiki/Return_more_than_one_row_of_data_from_PL/pgSQL_functions --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ -- View this message in context: http://postgresql.1045698.n5.nabble.com/function-returning-select-result-to-JDBC-tp5763565.html Sent from

[GENERAL] Re: Reply: [GENERAL] 回复: [GENERAL] Can't create plpython language

2013-07-11 Thread Raghavendra
thoughts to conclude this. Thanks Asif. Question still in mind, Why plpython depends on Shared Libraries (.so) ? http://www.postgresql.org/docs/9.3/static/install-requirements.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

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

2013-07-11 Thread Raghavendra
synchronous_commit = off, how can we get in such situation? Best regards, depesz Increasing the wal_keep_segments ? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

[GENERAL] Re: [GENERAL] 回复: [GENERAL] Can't create plpython language

2013-07-09 Thread Raghavendra
=/opt/ActivePython-3.2/ export LD_LIBRARY_PATH=/opt/ActivePython-3.2/lib/ Now start the postgresql cluster and try creating the language; -bash-4.1$ psql psql.bin (9.2.3) Type help for help. postgres=# create language plpython3u; CREATE LANGUAGE postgres=# --- Regards, Raghavendra EnterpriseDB

Re: [GENERAL] function with unknown params

2013-07-09 Thread Raghavendra
); acquistolotto --- (1 row) or postgres=# select acquistoLotto(0, 'grossista', 52187073424, 10, '1-22-2013'::date, 'ciao ciaociao', 10); acquistolotto --- (1 row) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] autovacuum: found orphan temp table

2013-06-25 Thread Raghavendra
schemas,if you want to get rid of the messages, just do DROP SCHEMA pg_temp_NNN CASCADE; --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] updatable view

2013-06-10 Thread Raghavendra
by Craig on SO with links (code/implementation). Below link helps you about how to on the updatable views. http://stackoverflow.com/questions/13151566/cannot-update-view --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] How to evaluate disk space needed by a table

2013-05-27 Thread Raghavendra
as row header and 4 bytes of integer data. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Table Partitioning

2013-05-22 Thread Raghavendra
... :) ) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Interrupt WAL recovery

2013-05-22 Thread Raghavendra
till to the acceptable time for you from the snapshot. http://www.postgresql.org/docs/9.2/static/recovery-target-settings.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Interrupt WAL recovery

2013-05-22 Thread Raghavendra
with some changes. Sure there will be answer's here if someone has more insight on this scenario) Its good to include this parameter in recovery.conf at the recovery start time. -- Raghav 2013/5/22 Raghavendra raghavendra@enterprisedb.com On Wed, May 22, 2013 at 3:38 PM, Fabio Rueda Carrascosa

Re: [GENERAL] Interrupt WAL recovery

2013-05-22 Thread Raghavendra
On Wed, May 22, 2013 at 4:15 PM, Raghavendra raghavendra@enterprisedb.com wrote: On Wed, May 22, 2013 at 3:53 PM, Fabio Rueda Carrascosa avances...@gmail.com wrote: Can I stop the server and modify recovery.conf with this param and restart it again without problems? It should work

Re: [GENERAL] Table Partitioning

2013-05-21 Thread Raghavendra
, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Regarding Postgres Plus Associate Certification

2013-05-18 Thread Raghavendra
topic's are well covered in PostgreSQL documentation, or you can also refer to PostgreSQL Administration Cookbook. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Schema (Search path issue) on PostgreSQL9.2

2013-05-16 Thread Raghavendra
postgres=# select version(); version --- PostgreSQL 9.2.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red

[GENERAL] pg_basebackup -R option in PG 9.3 beta

2013-05-15 Thread Raghavendra
. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] pg_basebackup -R option in PG 9.3 beta

2013-05-15 Thread Raghavendra
On Wed, May 15, 2013 at 3:18 PM, Hari Babu haribabu.ko...@huawei.comwrote: On Wednesday, May 15, 2013 2:50 PM Raghavendra wrote: Hi, ** ** While trying new features of Pg 9.3 beta, my eyes caught on pg_basebackup -R option so I have given a try but somehow I didn't succeed

Re: [GENERAL] pg_basebackup -R option in PG 9.3 beta

2013-05-15 Thread Raghavendra
On Wed, May 15, 2013 at 4:26 PM, Hari Babu haribabu.ko...@huawei.comwrote: on Wednesday, May 15, 2013 4:04 PM Raghavendra wrote: In earlier version of primary connection information was enclosed within one single quote: primary_conninfo = 'user=postgres host=localhost port=5432

Re: [GENERAL] PAM implementation in PG 9.2.3

2013-05-13 Thread Raghavendra
On Mon, May 13, 2013 at 11:17 AM, Amit Langote amitlangot...@gmail.comwrote: However, PG documentation doesn't highlight about this in psql or PAM section, because log entries written are slightly confusing. http://www.postgresql.org/docs/9.2/static/auth-methods.html

Re: [GENERAL] Views

2013-05-09 Thread Raghavendra
='table_name'; --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

[GENERAL] PAM implementation in PG 9.2.3

2013-05-08 Thread Raghavendra
to understand the above scenario. Any help will be highly appreciated. Thanks in advance. --- Regards, Raghavendra

Re: [GENERAL] PAM implementation in PG 9.2.3

2013-05-08 Thread Raghavendra
On Wed, May 8, 2013 at 4:55 PM, Amit Langote amitlangot...@gmail.comwrote: Hello Raghavendra, I think probably psql is a problem here. WIthout -W (force password before connect) option psql has no way knowing if this user needs a password to connect to the given database. So, psql first

Re: [GENERAL] COPY FROM on Windows and accentuated characters in the file path

2013-02-05 Thread Raghavendra
On Tue, Feb 5, 2013 at 3:47 PM, Thierry Hauchard gesteam_...@gesteam.frwrote: Hi, Using COPY FROM doesn't work if the path of the file has accentuated characters : command doesn't find the file. COPY FROM 'C:/import/prénoms/datas.txt' is so impossible. Is there a turnover ? PG 8.4,

Re: [GENERAL] pg_Restore

2013-01-21 Thread Raghavendra
=(default 200ms, change to 50ms) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ Thanks and Regards Radha Krishna -- Date: Mon, 21 Jan 2013 08:15:47 +0100 Subject: Re: [GENERAL] pg_Restore From: mag...@hagander.net

Re: [GENERAL] Cannot install postgres 9.2, less than 32 MB of memory

2013-01-19 Thread Raghavendra
Alex Can you try installing again after executing below command as Adminstrator... $ cat /etc/sysctl.conf | sudo xargs sysctl -w Also do share the information requested here... --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Logging affected rows

2013-01-18 Thread Raghavendra
; Aggregate (cost=1.02..1.03 rows=1 width=0) (actual time=0.015..0.015 rows=1 loops=1) Output: count(*) - Seq Scan on public.cities (cost=0.00..1.02 rows=2 width=0) (actual time=0.009..0.010 *rows=2* loops=1) Output: city, location --- Regards, Raghavendra

Re: [GENERAL] Logging affected rows

2013-01-18 Thread Raghavendra
On Sat, Jan 19, 2013 at 12:53 PM, Raghavendra raghavendra@enterprisedb.com wrote: On Thu, Jan 17, 2013 at 9:18 AM, classical_89 luongnx...@gmail.comwrote: When i run a query , i just only want to the affected rows are logged to log file,What can i do ? .Is there a parameter

Re: [GENERAL] Error: absolute path not allowed

2013-01-09 Thread Raghavendra
ilike '%pg_read_file%' and pronamespace=(select oid from pg_namespace where nspname='public'); --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Error: absolute path not allowed

2013-01-08 Thread Raghavendra
path not allowed 2013-01-08 07:42:02 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576) ** pg_read_file() search's from $PGDATA location. Can we see how pg_read_file() has been called ? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Unnecessary files that can be deleted/moved in cluster dir?

2013-01-07 Thread Raghavendra
and won't start back up. What message it has written in DB server log file (pg_log) about it not starting again ? You can check the last lines of the recent log file under $PG_DATA/pg_log location, which give very good information about why it has not started. --- Regards, Raghavendra EnterpriseDB

Re: [GENERAL] create table in memory

2012-11-23 Thread Raghavendra
is controlled with temp_buffer(shared by all backends) in postgresql.conf. You should check UNLOGGED tables of same family, these tables are visible to all the backends and data shared across backends. Since, data is not written to WAL's you should get better performance. --- Regards, Raghavendra

Re: [GENERAL] Boolean type storage format

2012-10-31 Thread Raghavendra
On Wed, Oct 31, 2012 at 8:52 PM, Alexander Gataric gata...@usa.net wrote: What is the data physically stored as for boolean type? I know that it is one byte but is it char, int, or something else? False represented by zero bytes and True by 1 byte with value 1. --- Regards, Raghavendra

Re: [GENERAL] Postgres Login Users Details

2012-10-22 Thread Raghavendra
--- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Who is LISTENing?

2012-10-15 Thread Raghavendra
On Tue, Oct 16, 2012 at 11:01 AM, Sim Zacks s...@compulab.co.il wrote: On 10/15/2012 06:11 PM, rektide wrote: Hi pgsql-general, I'm interested in writing a supervisory process that can insure worker processes are running/spawn new ones if not. These workers will mainly be responsible for

Re: [GENERAL] Postgres DB Migration from 8.3 to 9.1

2012-10-11 Thread Raghavendra
replication). --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Need to run a job in PgAdmin-III

2012-09-24 Thread Raghavendra
?. Also, Can any one tell, where i need to look for the errors, when i run a job? Hope below link help: http://www.pgadmin.org/docs/dev/pgagent-jobs.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Seeing tables with the same name on different schemas

2012-09-14 Thread raghavendra . rao
How about using this way ? \dt *.* Or \dt schemaname.* --Raghav Sent from my BlackBerry® smartphone from !DEA -Original Message- From: Robert Sosinski rsosin...@ticketevolution.com Sender: pgsql-general-owner@postgresql.orgDate: Fri, 14 Sep 2012 08:47:54 To:

Re: [GENERAL] pivot functions with variable number of columns

2012-09-06 Thread Raghavendra
with above example. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Fwd: PSQL Help from your biggest fan

2012-08-17 Thread Raghavendra
I tried your code in Postgres 8.2: 8.2 ?, Seems you have tested it in very Old version. CREATE OR REPLACE FUNCTION _final_mode(anyarray) RETURNS anyelement AS $BODY$ SELECT a FROM unnest($1) a GROUP BY 1 ORDER BY COUNT(1) DESC, 1 LIMIT 1; $BODY$ LANGUAGE 'sql' IMMUTABLE;

Re: [GENERAL] DB fails to start: Could not read from file pg_clog/0003 at offset 212992: No error.

2012-07-16 Thread Raghavendra
I think you need to download windows version DD and use it. http://www.chrysocome.net/dd --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Mon, Jul 16, 2012 at 7:25 PM, raghu ram raghuchenn...@gmail.com wrote: On Mon, Jul 16, 2012 at 5:44 PM, Olga

Re: [GENERAL] : Postgresql Error after recovery

2012-07-04 Thread Raghavendra
\ postgres=# \c oltp_db FATAL: index pg_attribute_relid_attnum_index contains unexpected zero page at block 0 HINT: Please REINDEX it. Previous connection kept Can anyone please help us. You have HINT given to REINDEX it. Use reindexdb from OS. --- Regards, Raghavendra EnterpriseDB

Re: [GENERAL] : Postgresql Error after recovery

2012-07-04 Thread Raghavendra
On Wed, Jul 4, 2012 at 2:11 PM, Raghavendra raghavendra@enterprisedb.com wrote: \ postgres=# \c oltp_db FATAL: index pg_attribute_relid_attnum_index contains unexpected zero page at block 0 HINT: Please REINDEX it. Previous connection kept Can anyone please help us. You have

Re: [GENERAL] : Postgresql Error after recovery

2012-07-04 Thread Raghavendra
. Should someone here would have better idea on this. http://www.postgresql.org/docs/9.0/interactive/runtime-config-developer.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Customising pg directories

2012-06-28 Thread Raghavendra
symblinks as well. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Customising pg directories

2012-06-28 Thread Raghavendra
Thanks too... :) --Raghav On Thu, Jun 28, 2012 at 4:52 PM, Ben Carbery ben.carb...@gmail.com wrote: Too easy, thanks. On 28 June 2012 18:38, Raghavendra raghavendra@enterprisedb.com wrote: On Thu, Jun 28, 2012 at 1:20 PM, Ben Carbery ben.carb...@gmail.com wrote: I am building

Re: [GENERAL] Calculating Replication Lag - units

2012-06-25 Thread Raghavendra
value of Master time). Here you get the time how much slave is behind from master. Note: Special attention required on Timezones. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Help, server doesn't start

2012-06-24 Thread Raghavendra
2012-06-25 02:22:36 GMT FATAL: the database system is starting up ** ** ** Can you also paste whats there in shared_preload_libraries setting from $PGDATA/postgresql.conf ? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Help, server doesn't start

2012-06-24 Thread Raghavendra
On Mon, Jun 25, 2012 at 10:10 AM, Anibal David Acosta a...@devshock.comwrote: Yes, we must upgrade. The value of the shared_preload_libraries is ** ** shared_preload_libraries = '$libdir/plugins/plugin_debugger.dll' # (change requires restart)

Re: [GENERAL] row_to_json question

2012-06-23 Thread Raghavendra
Also try: https://bitbucket.org/adunstan/json_91 --Raghav On Sun, Jun 24, 2012 at 3:45 AM, Joe Van Dyk j...@tanga.com wrote: On Sat, Jun 23, 2012 at 3:03 PM, Joe Van Dyk j...@tanga.com wrote: How can I use row_to_json for a subset of columns in a row? (without creating a new view or

Re: [GENERAL] Starting a cluster as a service

2012-06-22 Thread Raghavendra
for Postgres User. Second, you need to give directory name as below. log_directory = 'C:\\postgresql\\logs\\a_pg_cluster' --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Reading storage parameters

2012-06-21 Thread Raghavendra
+ tablename Second with pg_class. postgres=# select relname,reloptions from pg_class where relname='foo'; relname | reloptions -+ foo | {autovacuum_enabled=false} (1 row) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

Re: [GENERAL] Please make it easy to drop a database that is in use

2012-06-21 Thread Raghavendra
SELECT pg_terminate_backend(procpid) FROM pg_stat_activity WHERE datname = 'dropme'; ERROR: must be superuser to signal other server processes You can try this approach. http://archives.postgresql.org/pgsql-general/2012-04/msg00100.php --- Regards, Raghavendra EnterpriseDB Corporation

Re: [GENERAL] How to get no. of commits/rollbacks by application on the database?

2012-06-20 Thread Raghavendra
This sounds like one of those what are you trying to achieve questions, where you need to step back and ask why you're trying to collect that info and what you want it for. First, how do you define application? Any client that connects to a given database? Any client that sets the

[GENERAL] How to get no. of commits/rollbacks by application on the database?

2012-06-19 Thread Raghavendra
in these column. If am a DBA, how to know exact application or user commits/rollbacks happened on the database without enabling logs. Please advice. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

[GENERAL] Dtrace for tracing PostgreSQL link not working

2012-06-17 Thread Raghavendra
to right probes usage link for Tracing PostgreSQL ?. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Dtrace for tracing PostgreSQL link not working

2012-06-17 Thread Raghavendra
On Sun, Jun 17, 2012 at 7:54 PM, Magnus Hagander mag...@hagander.netwrote: Try https://blogs.oracle.com/robertlor/entry/user_level_dtrace_probes_in Thanks Dickson Finally, could someone go over the general advice under that section? It still says that it's bundled with solaris, which I

Re: [GENERAL] Backslashitis

2012-06-14 Thread Raghavendra
) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Thu, Jun 14, 2012 at 1:47 PM, haman...@t-online.de wrote: Hi, I have a column declared as array of text. I can get a single backslash into one of the array elements by update ... set mycol[1] = E'blah

Re: [GENERAL] Backslashitis

2012-06-14 Thread Raghavendra
On Thu, Jun 14, 2012 at 2:19 PM, Thomas Kellerer spam_ea...@gmx.net wrote: haman...@t-online.de, 14.06.2012 10:17: Hi, I have a column declared as array of text. I can get a single backslash into one of the array elements by update ... set mycol[1] = E'blah \\here' If I try to update the

Re: [GENERAL] Backslashitis

2012-06-14 Thread Raghavendra
--- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] TYPE TABLE OF NUMBER

2012-06-03 Thread Raghavendra
understanding POSTGRESQL : CREATE TYPE NUMBER_ARRAY AS (arr int); Appreciate any help ! Does this helps ? http://www.postgresql.org/docs/9.1/static/sql-createdomain.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] Updateable Views or Synonyms.

2012-05-30 Thread Raghavendra
about synonyms but obviously they have never been added to the database for some reason or another. You can also create a updateable VIEW using INSTEAD OF trigger which is a new feature in PG 9.1. http://www.postgresql.org/docs/9.1/static/sql-createtrigger.html --- Regards, Raghavendra

Re: [GENERAL] Disable Streaming Replication without restarting either master or slave

2012-05-29 Thread Raghavendra
of killing ? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] enhanced linestyles for psql

2012-05-24 Thread Raghavendra
? --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] enhanced linestyles for psql

2012-05-24 Thread Raghavendra
http://postgres.cz/wiki/Enhanced-psql Is this also compatible to 9.1 ? no, this was prepared for 8.4. These features was just experiment and only smaller subset is in core now. Oh ok. Thank you for the info. Multi-Headers, Macros of psql 8.4 were very interesting features,

Re: [GENERAL] varchar for loops possible?

2012-05-18 Thread Raghavendra
begin for tmp_var in (select distinct name from test_table) loop raise notice 'Give anything here :) ... !!!'; update test_table set name=tmp_var; end loop; end; $$ language plpgsql; --- Regards, Raghavendra EnterpriseDB Corporation Blog: http

Re: [GENERAL] How to get the physical locations of tables, views, functions etc of Postgresql in Windows Linux?

2012-05-04 Thread Raghavendra
On Fri, May 4, 2012 at 3:31 PM, Siva Palanisamy siv...@hcl.com wrote: Hi Raghavendra, ** ** Is it sure that we can copy only the data of Postgresql from one disk to other seamlessly and then I can reuse the content without any hassle? If so, tablespace is what I should create first

Re: [GENERAL] How to get the physical locations of tables, views, functions etc of Postgresql in Windows Linux?

2012-05-03 Thread Raghavendra
mean, can I able to access it? Please help me on this. Thanks! ** You cannot know the contents in files, unless u are good hacker :) --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] - tablespace and directory

2012-04-18 Thread Raghavendra
number: 201105231 Database system identifier: 5719586032196955957 Database cluster state: in production --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] - tablespace and directory

2012-04-18 Thread Raghavendra
AFAIK, I dont see any catalog's giving that information. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Wed, Apr 18, 2012 at 7:20 PM, F. BROUARD / SQLpro sql...@club-internet.fr wrote: Hi, is there anyway to have the value of Catalog version number

Re: [GENERAL] Two instances show same databases

2012-04-18 Thread Raghavendra
? /usr/local/postgresql/pgsql-9.1.3/bin/psql -p 5433 -l --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/

Re: [GENERAL] How to install pgfincore with PG 9.1

2012-04-17 Thread Raghavendra
---+-++- adminpack | 1.0 | pg_catalog | administrative functions for PostgreSQL pgfincore | 1.1.1 | public | examine and manage the os buffer cache plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language (3 rows) --- Regards, Raghavendra EnterpriseDB Corporation

Re: [GENERAL] Issue of upgrading from 9.0.4 to 9.1.3

2012-04-16 Thread Raghavendra
code to standard E('\sd')? Nope. Check out the below link under heading Basic Compatibility Issues for your reference. http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.1 --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Fri, Apr 13, 2012 at 2

Re: [GENERAL] PGBouncer help (how to get it working)

2012-04-13 Thread Raghavendra
On Fri, Apr 13, 2012 at 11:00 AM, Phoenix Kiula phoenix.ki...@gmail.comwrote: On Fri, Apr 13, 2012 at 2:41 AM, Scott Marlowe scott.marl...@gmail.com wrote: On Thu, Apr 12, 2012 at 11:12 AM, Phoenix Kiula phoenix.ki...@gmail.com wrote: WARNING: password file /root/.pgpass has group

Re: [GENERAL] Issue of upgrading from 9.0.4 to 9.1.3

2012-04-13 Thread Raghavendra
) postgres=# select E'Raghav\'s'; ?column? -- Raghav's (1 row) or change the parameter standard_confirming_strings to off; and retry your example. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] PGBouncer help (how to get it working)

2012-04-12 Thread Raghavendra
) but when I try to connect, it tells me psql: ERROR: No such user: MYSITE_pgbouncer Where should i create the MYSITE_pgbouncer user? Add it in pgbouncer.auth file as per your .ini file parameter. auth_file = /var/lib/pgsql/pgbouncer.txt --- Regards, Raghavendra EnterpriseDB Corporation

Re: [GENERAL] what happens when concurrent index create

2012-04-03 Thread Raghavendra
pgstatstatements contrib module. http://www.postgresql.org/docs/9.1/static/pgstatstatements.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ -- View this message in context: http://postgresql.1045698.n5.nabble.com/what-happens-when-concurrent-index-create

Re: [GENERAL] Unable to createlang

2012-04-03 Thread Raghavendra
installed Postgres on a Windows systems. Sincerely appreciate any help. set the LD_LIBRARY_PATH environment variable to the PostgreSQL lib location location and retry. --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ Tom Harkaway -- Sent via pgsql

Re: [GENERAL] Log statement with timestamp

2012-02-23 Thread Raghavendra
Need to enable log_line_prefix with timestamp %t. http://www.postgresql.org/docs/9.1/static/runtime-config-logging.html --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Thu, Feb 23, 2012 at 2:15 PM, Madhu S R s_r_ma...@yahoo.co.in wrote: Hi, I

Re: [GENERAL] Dump functions alone

2012-02-15 Thread Raghavendra
You have two options. - Use contrib module pg_extractor https://github.com/omniti-labs/pg_extractor - Use pg_proc catalog to get function definition --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ On Wed, Feb 15, 2012 at 6:59 PM, Rajan, Pavithra

  1   2   3   >