pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
To: D. Dante Lorenso <dante@lorenso.com>
To: pgsql-general@postgresql.org
Cc: pgsql-advocacy@postgresql.org
Subject: Re: [GENERAL] Is my MySQL Gaining ?
Date: Sun, 28 Dec 2003 14:30:40 +0530
Message-ID: <200312281430.40487.shridhar_daithankar@myrealbox.com> (raw)
In-Reply-To: <3FEE6DFB.9040408@lorenso.com>
References: <Pine.LNX.4.44.0312271122130.20117-100000@brahma.wcg.mcgill.ca>
	<00b701c3ccff$e4ca3610$a644053d@winxp>
	<3FEE6DFB.9040408@lorenso.com>

On Sunday 28 December 2003 11:15, D. Dante Lorenso wrote:
> The only SQL customizations that MySQL has that I really miss in PostgreSQL
> are the commands:
>
> 	SHOW DATABASES;

\l

> 	SHOW TABLES;

\dt

> 	DESC table;

\d tablename

>
> That was ubber simple to do in MySQL.  To this day, I have trouble with
> that in PostgreSQL.  I'm constantly doing:
>
> 	psql> \?
> 	psql> help;
> 	ERROR:  syntax error at or near "help" at character 1
> 	psql> \h
> 	...
> 	* damnit, that's not it...*
> 	psql> \?
> 	psql> \d
> 	* ok, now which flag do I use for tables vs functions..etc?*

\df for functions and \dt for tables.

Problem is psql is unique though very powerful. I need to use oracle's 
sql-plus on HP-UX at times(Otherwise I crawl back to TOAD) and I don't think 
it is nowhere near to psql. 

or may be I play with postgresql more than oracle..:-) anyways

> I finally figure it out, I just end up forgetting again later.  I still
> have no clue how I'd find the same data without using psql.  In MySQL
> I can run those queries from PHP, PERL...etc.  I know you can find that
> data in system tables in PostgreSQL, but I don't wanna muck around with
> all that.  I just wanna do something as simple as MySQL.

Well, actually I would say it is great way of learning postgresql internals. 
There is a switch -E to psql which shows you queries sent to server for each 
command you provide.

Problem with mysql is the approach is easy to start with but adding those 
command in your standard list of SQL commands falls out on standard 
compliance and maintainability.

Another post on this thread mentioned postgresql should run against oracle. 
Sole reason postgresql v/s mysql debate should exist is to provide 
comparision in feasibility study. The hurdles you mentioned are true but that 
are just part of bit steeper learning curve of a standard way of doing 
things..

 Shridhar




view thread (188+ messages)  latest in thread

Message-ID: <200312281430.40487.shridhar_daithankar@myrealbox.com>
Permalink:  ../200312281430.40487.shridhar_daithankar@myrealbox.com/
Also on:    postgresql.org/message-id/200312281430.40487.shridhar_daithankar@myrealbox.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shridhar_daithankar@myrealbox.com, dante@lorenso.com, pgsql-advocacy@postgresql.org
  Subject: Re: [GENERAL] Is my MySQL Gaining ?
  In-Reply-To: <200312281430.40487.shridhar_daithankar@myrealbox.com>
  References: <Pine.LNX.4.44.0312271122130.20117-100000@brahma.wcg.mcgill.ca> <00b701c3ccff$e4ca3610$a644053d@winxp> <3FEE6DFB.9040408@lorenso.com> <200312281430.40487.shridhar_daithankar@myrealbox.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox