Re: [GENERAL] Show Databases via ODBC

2012-03-07 Thread Bret Stern
Works perfect. I'll trap and show only our databases to the user. all thanks On Wed, 2012-03-07 at 21:00 +0100, Szymon Guz wrote: > On 7 March 2012 20:36, Bret Stern > wrote: > Is it possible through ODBC to connect to a PostgreSql > server and query for the available databases? >

Re: [GENERAL] Show Databases via ODBC

2012-03-07 Thread Szymon Guz
On 7 March 2012 20:36, Bret Stern wrote: > Is it possible through ODBC to connect to a PostgreSql > server and query for the available databases? > > When our application upgrades, we typically create a > new database. I want to design a form which allows > the user to select the old database, wh

[GENERAL] Show Databases via ODBC

2012-03-07 Thread Bret Stern
Is it possible through ODBC to connect to a PostgreSql server and query for the available databases? When our application upgrades, we typically create a new database. I want to design a form which allows the user to select the old database, which then migrates data to the new (currently connected

Re: [GENERAL] Show in psql does any calculations?

2011-12-27 Thread Raghavendra
Thanks all for clarifying me... Good to know this... --- Regards, Raghavendra EnterpriseDB Corporation Blog: http://raghavt.blogspot.com/ 2011/12/27 Filip Rembiałkowski > so as long as actual logic is buried in the guts of psql, best you can > do in SQL to get human-readable value is > > SELE

Re: [GENERAL] Show in psql does any calculations?

2011-12-27 Thread Filip Rembiałkowski
so as long as actual logic is buried in the guts of psql, best you can do in SQL to get human-readable value is SELECT name, setting, unit, case when unit='kB' then pg_size_pretty(setting::int*1024) when unit='8kB' then pg_size_pretty(setting::int*1024*8) else coalesce(setting||' '||unit,setting)

Re: [GENERAL] Show in psql does any calculations?

2011-12-27 Thread Guillaume Lelarge
On Tue, 2011-12-27 at 15:21 +0530, Raghavendra wrote: > > > On Tue, Dec 27, 2011 at 3:16 PM, Guillaume Lelarge > wrote: > On Tue, 2011-12-27 at 14:56 +0530, Raghavendra wrote: > > Respected, > > > > Am in PG 9.1. See below ouputs. > > > >

Re: [GENERAL] Show in psql does any calculations?

2011-12-27 Thread Raghavendra
On Tue, Dec 27, 2011 at 3:16 PM, Guillaume Lelarge wrote: > On Tue, 2011-12-27 at 14:56 +0530, Raghavendra wrote: > > Respected, > > > > Am in PG 9.1. See below ouputs. > > > > *By query:* > > postgres=# SELECT name, setting, unit,context FROM pg_settings WHERE > > category like '%Resource Usage /

Re: [GENERAL] Show in psql does any calculations?

2011-12-27 Thread Guillaume Lelarge
On Tue, 2011-12-27 at 14:56 +0530, Raghavendra wrote: > Respected, > > Am in PG 9.1. See below ouputs. > > *By query:* > postgres=# SELECT name, setting, unit,context FROM pg_settings WHERE > category like '%Resource Usage / Memory%' ORDER BY name; >name| setting | unit |

[GENERAL] Show in psql does any calculations?

2011-12-27 Thread Raghavendra
Respected, Am in PG 9.1. See below ouputs. *By query:* postgres=# SELECT name, setting, unit,context FROM pg_settings WHERE category like '%Resource Usage / Memory%' ORDER BY name; name| setting | unit | context ---+-+--+ ma

Re: [GENERAL] "show all" command crashes server *** FIXED ***

2009-09-13 Thread Tom Lane
Grant Maxwell writes: > The error was that if "show all" was run on this postgresql (version > 8.3) server, postgres would crash and then recover. > The postgres log showed: > Sep 10 23:55:36 theconsole postgres[31118]: [4-1] 0: LOG: 0: > server process (PID 31145) was te

Re: [GENERAL] "show all" command crashes server *** FIXED ***

2009-09-13 Thread Grant Maxwell
First of all thanks to those who provided input. This problem is now fixed and I thought I would post this solution so that others might benefit in the future. For the sake of completeness: The error was that if "show all" was run on this postgresql (version 8.3) server, postgres would cr

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Tom Lane
Grant Maxwell writes: > On 11/09/2009, at 8:36 AM, Tom Lane wrote: >> Did you restart the postmaster afterwards? > yep - full restart. okay, next step is to collect a stack trace ... regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgres

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 >> shared_preload_libraries = 'pgmemcache' ... > Sounds like a smoking gun to me. Yep, known problem with pgmemcache. Bruce and I poked around with this about a year ago. Bruce, I think you were going to throw the problem at some EDB people - di

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Grant Maxwell
On 11/09/2009, at 8:36 AM, Tom Lane wrote: Grant Maxwell writes: On the problem server: shared_preload_libraries = 'pgmemcache' #local_preload_libraries = '' on the others both are emply. Sounds like a smoking gun to me. For good measure I removed pgmemcache but the pro

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Tom Lane
Grant Maxwell writes: > On the problem server: > shared_preload_libraries = 'pgmemcache' > #local_preload_libraries = '' > on the others both are emply. Sounds like a smoking gun to me. > For good measure I removed pgmemcache but the problem persists. Did you restart the postmaster

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Grant Maxwell
On 11/09/2009, at 8:17 AM, Tom Lane wrote: Grant Maxwell writes: On 11/09/2009, at 1:09 AM, Richard Huxton wrote: Hmm - some modules can provide their own config variables. Do you have the same modules installed in all three servers? How can I determine what modules are

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Tom Lane
Grant Maxwell writes: > On 11/09/2009, at 1:09 AM, Richard Huxton wrote: >> Hmm - some modules can provide their own config variables. Do you have >> the same modules installed in all three servers? > How can I determine what modules are installed ? The contents of the local_preloa

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Grant Maxwell
On 11/09/2009, at 1:09 AM, Richard Huxton wrote: On this one server if I use the command "show all" in psql, phpPgAdmin or pgAdmin3 the postgresql server spits the dummy as follows: postgres=# show all; server closed the connection unexpectedly Hmm - some modules can provide their ow

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Scott Marlowe
On Thu, Sep 10, 2009 at 8:37 AM, Grant Maxwell wrote: > Hi folks > First time poster here so please extend grace if I don't initially provide > what is needed to help. > I am running postgresql 8.3.7 on debian lenny > (postgresql-8.3_8.3.7-0lenny1_i386.deb). > I have three of these servers and gene

Re: [GENERAL] "show all" command crashes server

2009-09-10 Thread Richard Huxton
Grant Maxwell wrote: > Hi folks > > First time poster here so please extend grace if I don't initially > provide what is needed to help. > > I am running postgresql 8.3.7 on debian lenny > (postgresql-8.3_8.3.7-0lenny1_i386.deb) Well that's useful. > I have three of these servers and generally

[GENERAL] "show all" command crashes server

2009-09-10 Thread Grant Maxwell
Hi folks First time poster here so please extend grace if I don't initially provide what is needed to help. I am running postgresql 8.3.7 on debian lenny (postgresql-8.3_8.3.7-0lenny1_i386.deb). I have three of these servers and generally they run well. On this one server if I use the co

Re: [GENERAL] Show all commands executed

2008-11-07 Thread Tom Lane
"Anderson dos Santos Donda" <[EMAIL PROTECTED]> writes: > How can I show on terminal all commands executed by my postgre server? You could turn on log_statements and then tail -f the postmaster log. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@

[GENERAL] Show all commands executed

2008-11-07 Thread Anderson dos Santos Donda
How can I show on terminal all commands executed by my postgre server? Example: My system execute the comand : 'SELECT * FROM clients' and the postgre show this commando on the terminal ? Thanks

Re: [GENERAL] show time consumed by query in psql

2008-02-13 Thread Richard Huxton
Willy-Bas Loos wrote: Hi, I´m on a slow internet connection, but i want to optimize a view on a server. I have console access, so psql seems the right way - pgAdmin from the client is just way biassed. How can i make psql report the amount of time that was consumed in the query?? I´ve seen a cou

Re: [GENERAL] show time consumed by query in psql

2008-02-13 Thread A. Kretschmer
am Wed, dem 13.02.2008, um 10:22:29 +0100 mailte Willy-Bas Loos folgendes: > How can i make psql report the amount of time that was consumed in the query?? > IŽve seen a couple of posts that refer to this, but everyone seems to solve it > in some other way. Is this not a feature of psql? (it shoul

[GENERAL] show time consumed by query in psql

2008-02-13 Thread Willy-Bas Loos
Hi, I´m on a slow internet connection, but i want to optimize a view on a server. I have console access, so psql seems the right way - pgAdmin from the client is just way biassed. How can i make psql report the amount of time that was consumed in the query?? I´ve seen a couple of posts that refer

Re: [GENERAL] show connection limit?

2007-08-29 Thread Tom Lane
[EMAIL PROTECTED] writes: > Is there a way to see what the connection limit is set to for various > users? Look in pg_authid. regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to increase your free space map set

[GENERAL] show connection limit?

2007-08-29 Thread Ken . Colson
I have set the connection limit of a user with the ALTER ROLE command in 8.1. Is there a way to see what the connection limit is set to for various users? Thanks, Ken

Re: [GENERAL] show all record between two date after group by and aggrigation...

2007-01-23 Thread Chad Wagner
On 1/23/07, Jorge Godoy <[EMAIL PROTECTED]> wrote: > select cal.date, coalesce(foo.x, 0) AS x > from (select (date_trunc('day', current_timestamp) + (s.s * interval '1 > day'))::date AS date > from generate_series(1,365) AS s) AS cal > left join foo ON cal.date = foo.create_date; Why

Re: [GENERAL] show all record between two date after group by and aggrigation...

2007-01-23 Thread Jorge Godoy
"Chad Wagner" <[EMAIL PROTECTED]> writes: > Most people do this with a "calendar" table, worst case is you could use > generate_series to do it (but it's ugly, and it may not scale well -- > haven't tested it) and left join it to your data table. > > select cal.date, coalesce(foo.x, 0) AS x > fro

Re: [GENERAL] show all record between two date after group by and aggrigation...

2007-01-22 Thread Chad Wagner
On 1/22/07, deepak pal <[EMAIL PROTECTED]> wrote: i am fatching record's from data base between two date range for registration_date coloum and than group by an count it using count(registration_date) i have to show all dates even if date is not there in registration_date ,it should show date an

[GENERAL] show all record between two date after group by and aggrigation...

2007-01-22 Thread deepak pal
i am fatching record's from data base between two date range for registration_date coloum and than group by an count it using count(registration_date) i have to show all dates even if date is not there in registration_date ,it should show date and 0 in count.,how can i do it plz healp...

[GENERAL] Show all to a specific backed

2005-12-19 Thread Carlos Benkendorf
Hi,   Is there a way to send a "show all" to a specific backend?   Thanks!   Benkendorf! Yahoo! doce lar. Faça do Yahoo! sua homepage.

[GENERAL] Show me FUCKING RESPECT!

2004-11-16 Thread Mike Cox
BITCHES! All that I'm doing for you fucking people. Be grateful! Mike Cox Mike Cox [EMAIL PROTECTED] ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED]

Re: [GENERAL] SHOW

2001-09-04 Thread Stephan Bergmann
Hi Joe. > > Start up psql with the -E on the command line. Then do \d TABLE. This will > show you the actual SQL commands used by psql. Doesn't change nothing. > See the psql man page for more details. No hints to find there respective to the libpq's PQexec. Greetings Steve ---

Re: [GENERAL] SHOW

2001-09-03 Thread Joe Conway
> > > What is the equivalent to the mysql's: > > > SHOW COLUMNS FROM [TABLENAME]; > > > > in psql, \d will show you all tables and \d TABLE will show you the > > columns in the table. If you need it as a sql command, you can check the > > system tables. > > OK. That works for ./bin/psql, but NO

Re: [GENERAL] SHOW

2001-09-03 Thread Stephan Bergmann
Hi! > > > What is the equivalent to the mysql's: > > SHOW COLUMNS FROM [TABLENAME]; > > in psql, \d will show you all tables and \d TABLE will show you the > columns in the table. If you need it as a sql command, you can check the > system tables. OK. That works for ./bin/psql, but NOT on th

Re: [GENERAL] Show triggers in psql?

2000-09-14 Thread Stephan Szabo
You can get a list of all triggers in the system as select * from pg_trigger; You can get the source for a PL function a trigger calls with: select prosrc from pg_trigger,pg_proc where pg_proc.oid=pg_trigger.tgfoid and pg_trigger.tgname = '' [Note, in the case of C functions, I think this r

[GENERAL] Show triggers in psql?

2000-09-14 Thread Bryan Field-Elliot
Forgive me if I am missing the obvious, but can someone please tell me how to show a list of triggers, or the code in a specific trigger, via the pgsql utility? Thank you, Bryan