[ADMIN] host name?

2007-02-26 Thread Igor Neyman
Is there a function (or catalog view) that I can call in psql and that will tell me host name of the machine on which Postgres database is running? Igor

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
And one more question. Is there a way (function/view) to find machine name on which user program (connected to Postgres) runs? Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Neyman Sent: Monday, February 26, 2007 10:29 AM To: pgsql

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Shellam (Mailing Lists) Sent: Monday, February 26, 2007 10:56 AM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? Igor Neyman wrote: Is there a function (or catalog view) that I can call

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
Neyman Cc: Andy Shellam (Mailing Lists); pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? not sure how to resolve the name, but maybe this is close enough: select usename, client_addr from pg_catalog.pg_stat_activity; On Mon, Feb 26, 2007 at 11:47:13AM -0500, Igor Neyman wrote: You

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
To: Igor Neyman Cc: Andy Shellam (Mailing Lists); pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? not sure how to resolve the name, but maybe this is close enough: select usename, client_addr from pg_catalog.pg_stat_activity; On Mon, Feb 26, 2007 at 11:47:13AM -0500, Igor Neyman wrote

Re: [ADMIN] problem upgrading from 8.1.6 to 8.1.8 --- relation tablename does not exist

2007-03-09 Thread Igor Neyman
Why wouldn't you look at the definition of the view which is based on this table (and which you claim is still working), and how it references basic table? M.b. it'll point you to the actual table location. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [ADMIN] exception handling in postgres plpgsql

2007-04-04 Thread Igor Neyman
Obviously, you are coming from Oracle world. In PG according to: http://www.postgresql.org/docs/current/static/errcodes-appendix.html exception WHEN no_data THEN ... Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karthikeyan Sundaram

Re: [ADMIN] Copying schemas between databases

2007-05-10 Thread Igor Neyman
Lookup dblink in postgres documentation. Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 10:00 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] Copying schemas between databases Hi Im

Re: [ADMIN] anonymous block in Postgres - Hello World

2007-05-24 Thread Igor Neyman
AS $$ ' || exec_string || ' $$LANGUAGE PLPGSQL;' ; PERFORM any_block(); RETURN TRUE; END; $THIS$LANGUAGE PLPGSQL; to which I pass my anonymous block as a parameter. As you can see, this function creates/replaces on the fly function any_block() and executes it. Pretty simple solution. Igor Neyman

Re: [ADMIN] Change order of table-columns in pg_catalog.pg_attribute.attnum

2007-06-06 Thread Igor Neyman
More important question would be, why would you want to do this (change columns order)? I can't think of any valid reason for this. Igor Neyman -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erwin Brandstetter Sent: Wednesday, June 06, 2007 11:22 AM

Re: [ADMIN] copying data into another database ? (replication)

2007-06-07 Thread Igor Neyman
Look up dblink(...) function in PG documentation: http://search.postgresql.org/search?u=%2Fdocs%2F8.2%2Fstatic%2Fq=dblink Igor Neyman From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raul Retamozo Sent: Wednesday, June 06, 2007 7:09 PM To: pgsql

Re: [ADMIN] Postgres VS Oracle

2007-06-18 Thread Igor Neyman
This document: http://www-css.fnal.gov/dsg/external/freeware/mysql-vs-pgsql.html could answer some of your questions. Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Tokmatchi Sent: Monday, June 18, 2007 11:55 AM To: [EMAIL

Re: [ADMIN] Can primary key be dropped and added back in?

2007-07-17 Thread Igor Neyman
ALTER TABLE tableName ADD CONSTRAINT pkname_pkey (column1, column2, ...); From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jessica Richard Sent: Tuesday, July 17, 2007 2:44 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] Can primary key be

Re: [ADMIN] Searching in a string with index

2007-07-25 Thread Igor Neyman
Index will not be used if your string has wild card (%) in the beginning. It should be used, if you change your query to: select * from tb_gen_person where pes_name like 'albert%'; Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander B. Sent:

Re: [ADMIN] Delete COLUMN data

2007-08-09 Thread Igor Neyman
It is called update: UPDATE table_name SET column1 = NULL, column2 = NULL, column2 = NULL; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of smiley2211 Sent: Thursday, August 09, 2007 10:27 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] Delete COLUMN

Re: [ADMIN] help with query

2007-08-17 Thread Igor Neyman
Why not use information_schema? select prk.table_name AS PARENT_TABLE, prk.constraint_name AS PK, tc.table_name AS CHILD_TABLE, refc.constraint_name AS FK from information_schema.table_constraints prk, information_schema.referential_constraints refc,

Re: [ADMIN] Primary key

2007-09-19 Thread Igor Neyman
Yes, PG allows compound or composite keys for primary keys. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carol Walter Sent: Wednesday, September 19, 2007 10:37 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] Primary key Hello, Does postgres

Re: [ADMIN] alter table serial-int

2007-11-08 Thread Igor Neyman
Eric, Don't be so defensive. Here is an abstract from documentation: 8.1.4. Serial Types The data types serial and bigserial are not true types, but merely a notational convenience for setting up unique identifier columns (similar to the AUTO_INCREMENT property supported by some other

[ADMIN] dobc install error on Windows

2008-05-30 Thread Igor Neyman
I'm trying to install 8.3.1 (binaries) on Win2003 using windows installer (msi). I'm runnning silent install with: ADDLOCAL=server,psql,pgadmin,psqlodbc,nls and I'm getting error message saying, that psqlodbc is not included in the package. When I exclude odbc:

[ADMIN] odbc install error on Windows

2008-05-30 Thread Igor Neyman
I'm trying to install 8.3.1 (binaries) on Win2003 using windows installer (msi). I'm runnning silent install with: ADDLOCAL=server,psql,pgadmin,psqlodbc,nls and I'm getting error message saying, that psqlodbc is not included in the package. When I exclude odbc:

Re: [ADMIN] Postgres windows service shutdowns after start

2008-07-02 Thread Igor Neyman
stats_start_collector is an obsolete parameter in 8.3, that's why PG wouldn't start with it. Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bogdad Sent: Wednesday, July 02, 2008 2:38 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] Postgres

Re: [ADMIN] dropping a user in 8.2.6

2008-07-08 Thread Igor Neyman
First do: DROP OWNED BY user1; then: drop role user1; Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rex Mabry Sent: Tuesday, July 08, 2008 12:45 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] dropping a user in 8.2.6 I am using

Re: [ADMIN] Query a list of tables

2008-07-23 Thread Igor Neyman
First you get to Postgresql docs, from there you get anywhere you want. Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gibson Chimhamhiwa Sent: Wednesday, July 23, 2008 11:10 AM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Query a

Re: [ADMIN] Prent-Child relationships in SQL

2008-07-25 Thread Igor Neyman
Read the docs on connectby function provided by tablefunc contrib module. Igor From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gibson Chimhamhiwa Sent: Friday, July 25, 2008 7:43 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] Prent-Child

Re: [ADMIN] can I update multiple table at a time?

2008-10-10 Thread Igor Neyman
If you could declare a Foreign Key on two columns in history table referencing master table, and declare this FK with ON UPDATE CASCADE option, then postgres will update status in history table for you whenever you update status in master table. Igor -Original Message- From: [EMAIL

[ADMIN] excluding tables from VACUUM ANALYZE

2008-10-28 Thread Igor Neyman
When I run VACUUM ANALYZE (or vacuumdb -z) on the database, how can I exclude specific tables from being analyzed? Igor

[ADMIN] relation between records in main and toast tables

2010-01-25 Thread Igor Neyman
Hello, Let's say TableA has toastable column, the contents of this column is stored in let's say pg_toast_1234. Is there a query to find which records (chunk_id, chunk_seq) in pg_toast_1234 store data for specific record in TableA (i.e. with PK column value eq. '567')? Igor Neyman

[ADMIN] New/obsolete configuration parameters

2010-02-11 Thread Igor Neyman
Is there a document desribing (ar at least listing) new/obsolete configuration parameters in postgresql.conf, when upgrading from version to version? Regards, Igor Neyman

Re: [ADMIN] Live sort-of-'warehousing' database how-to?

2010-03-31 Thread Igor Neyman
server, and pg_restore them there. Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Oracle's Long data type equivalent data type in Postgresql ?

2010-05-29 Thread Igor Neyman
έγραψε: Hi , What is the Oracle's Long data type equivalent data type in Postgresql ? int8 i guess Regards, Ravi katkar -- Achilleas Mantzios No, it's bytea (and not int8). Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org

[ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
) is that I'm trying to save time during upgrade, and I have these big backup files already created. TIA, Igor Neyman

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Tuesday, June 22, 2010 10:37 AM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore Igor Neyman iney...@perceptron.com writes: I'm testing 8.4.4 (on Windows

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: John Rouillard [mailto:rou...@renesys.com] Sent: Tuesday, June 22, 2010 11:52 AM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore On Tue, Jun 22, 2010 at 11:05:02AM -0400, Igor Neyman wrote: Igor

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: Glyn Astill [mailto:glynast...@yahoo.co.uk] Sent: Tuesday, June 22, 2010 12:36 PM To: John Rouillard; Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore --- On Tue, 22/6/10, Igor Neyman iney...@perceptron.com

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: Kevin Grittner [mailto:kevin.gritt...@wicourts.gov] Sent: Tuesday, June 22, 2010 12:40 PM To: Igor Neyman; John Rouillard; Glyn Astill Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore Glyn Astill glynast...@yahoo.co.uk

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Tuesday, June 22, 2010 1:10 PM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore Igor Neyman iney...@perceptron.com writes: Attached are couple smallish files

Re: [ADMIN] parallel option in pg_restore

2010-06-22 Thread Igor Neyman
-Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Tuesday, June 22, 2010 2:41 PM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] parallel option in pg_restore Igor Neyman iney...@perceptron.com writes: Attached is script that could

Re: [ADMIN] fail-safe sql update triggers

2010-09-07 Thread Igor Neyman
, in short there is no easy way around. When source table is modified, destination table and trigger function should be also modified. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [ADMIN] could not connect to server: Connection refused (0x0000274D/10061)

2010-09-30 Thread Igor Neyman
proper configuration (that allows network connections) in your pg_hba.conf file? Regards, Igor Neyman

Re: [ADMIN] Postgres Backup Utility

2011-01-20 Thread Igor Neyman
necessity (there are many: CSV, SourceSafe, Perforce, ... - pick your choice). Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] odbc

2011-03-30 Thread Igor Neyman
Data Source (or User) - not File Data Source. Regards, Igor Neyman

Re: [ADMIN] revoked permissions on table still allows users to see table's structure

2011-07-22 Thread Igor Neyman
on data dictionary views. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Postgres service starts and then stops immediatly

2011-08-11 Thread Igor Neyman
it be that account used to start PG service doesn't have privileges to run as a service? Check in Local Security Settings under Local Policies/User Rights Assignments - make sure that Log on as a service granted to the account specified in PG service properties. Regards, Igor Neyman -- Sent via pgsql-admin

Re: [ADMIN] Database alias

2011-08-25 Thread Igor Neyman
is the easiest piece of software to install and to manage I've ever dealt with, and it's very light on system resources. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] logfile per DataBase

2012-02-24 Thread Igor Neyman
db emitted particular line. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Recreate primary key without dropping foreign keys?

2012-04-17 Thread Igor Neyman
. It's similar to Oracle's adding FK with NOCHECK option, but if IRC there is no need to run VALIDATE CONSTRAINT later. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

[ADMIN] unlooged tables

2012-11-06 Thread Igor Neyman
Hi, Where in pg_catalog I can find, if the table was created as unlogged (or not)? As in: create unlogged table t1(c1 int); I can't seem to find this info in pg_catalog tables/views. Tried psql with -E to describe (\d) unlogged table, but it was not helpful. Regards, Igor Neyman

Re: [ADMIN] unlooged tables

2012-11-06 Thread Igor Neyman
From: Igor Neyman Sent: Tuesday, November 06, 2012 4:09 PM To: pgsql-admin@postgresql.org Subject: unlooged tables Hi, Where in pg_catalog I can find, if the table was created as unlogged (or not)? As in: create unlogged table t1(c1 int); I can't seem to find this info in pg_catalog tables

Re: [ADMIN] DBLink

2013-04-25 Thread Igor Neyman
this error with exception handler inside senddatato(...) function? See PG docs: http://www.postgresql.org/docs/9.2/interactive/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes

Re: [ADMIN] Migration from Oracle 11g to Postgresql

2013-05-02 Thread Igor Neyman
. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] exceeded MAX_ALLOCATED_DESCS while trying to open file

2013-05-28 Thread Igor Neyman
or possibly read the data into a temporary table for processing? Regards, Ken Hi Ken, So, it means that number of (different) foreign tables joined in single select cannot exceed 10, right? Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes

Re: [ADMIN] How do I know my table is bloated?

2013-05-30 Thread Igor Neyman
From: Rodrigo Barboza [mailto:rodrigombu...@gmail.com] Sent: Thursday, May 30, 2013 2:50 PM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] How do I know my table is bloated? Well, maybe I am.  But I am worried because I know that there are some tables that do lots

Re: [ADMIN] Catch exceptions outside function

2013-09-18 Thread Igor Neyman
for. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Random server overload

2013-10-01 Thread Igor Neyman
try using any kind of connection pooler, e.g. PgBouncer? Should help. Regards, Igor Neyman -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin