Postgres Tool For Mac Best

Posted on  by 

Active6 years, 9 months ago

coming back to postgresql after several years of oracle ...

what are the state-of-the art postgresql administrative/ddl generating/data inserting frontends on windows? it would be nice if it had integration for postgis as well. it should be standalone or alternatively a plugin for intellij idea

thinking back, all the windows programs specific for postgresql i have used were crap, especially PGAdmin. had it become better?

Andreas Petersson
Andreas Petersson

If you learn by example, like I do, then this is the best book to learn a complete solution. I have been trying to figure out how to put all the parts together for quite some time, but every resource gives just enough to create frustration.but NOT this book. Postgres.app is a full-featured PostgreSQL installation packaged as a standard Mac app. It includes everything you need to get started: we’ve even included popular extensions like PostGIS for geo data and plv8 for JavaScript. PostgreSQL is one of the best database engines for an average web project and many who moves to psql from mysql (for example) often ask the following questions: what is the analog of “show tables” in postgres? Or how can I get the list of databases in postgres like “show databases” in mysql? PostgreSQL, often simply Postgres, is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards compliance. It can handle workloads ranging from small single-machine applications to large Internet-facing applications (or for data warehousing) with many concurrent users; on macOS Server, PostgreSQL is the default database; and it is also available.

Andreas Petersson
13.5k11 gold badges53 silver badges88 bronze badges

closed as not constructive by Bo Persson, Linger, Jens Björnhager, AlphaMale, CésarDec 13 '12 at 14:40

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.

9 Answers

I like Postgresql Maestro. I also use their version for MySql. I'm pretty statisfied with their product. Or you can use the free tool PgAdmin.

Francis B.Francis B.
6,2532 gold badges28 silver badges53 bronze badges

do you mean something like pgAdmin for administration?

Milen A. Radev
46.5k18 gold badges95 silver badges101 bronze badges
Arthur ThomasArthur Thomas
4,5741 gold badge20 silver badges30 bronze badges

Actually there is a freeware version of EMS's SQL Manager which is quite powerful

amrtnamrtn

I heartily recommended dbVis. The client runs on Mac, Windows and Linux and supports a variety of database servers, including PostgreSQL.

jwfearnjwfearn
18.9k22 gold badges82 silver badges112 bronze badges

I recommend Navicat strongly. What I found particularly excellent are it's import functions - you can import almost any data format (Access, Excel, DBF, Lotus ...), define a mapping between the source and destination which can be saved and is repeatable (I even keep my mappings under version control).

I have tried SQLMaestro and found it buggy (particularly for data import); PGAdmin is limited.

WillWill

For anyone looking for a web-enabled client for Postgres, I'll just put the link out here to TeamPostgreSQL, a very polished AJAX web client for pg:

johnyjohny

EMS's SQL Manager is much easier to use and has many more features than either phpPgAdmin or PG Admin III. However, it's windows only and you have to pay for it.

HergeHerge
6,9994 gold badges19 silver badges17 bronze badges

SQLExplorer is a great Eclipse plugin or standalone interface that works with many different database systems, either with dedicated drivers or with ODBC.

LiamLiam
10.6k20 gold badges74 silver badges102 bronze badges

phpPgAdmin is PostgreSQL web frontend which is quite good.

vogvog
12.1k6 gold badges40 silver badges60 bronze badges

Not the answer you're looking for? Browse other questions tagged windowspostgresqlfrontendpostgis or ask your own question.

Active5 months ago

Where are the files for a PostgreSQL database stored?

Acumenus
27k7 gold badges76 silver badges77 bronze badges
TeifionTeifion
45.5k73 gold badges147 silver badges187 bronze badges

12 Answers

Snippet Tool For Mac

To see where the data directory is, use this query.

To see all the run-time parameters, use

You can create tablespaces to store database objects in other parts of the filesystem. To see tablespaces, which might not be in that data directory, use this query.

Mike Sherrill 'Cat Recall'Mike Sherrill 'Cat Recall'
72.4k13 gold badges91 silver badges146 bronze badges

On Windows7 all the databases are referred by a number in the file named pg_database under C:Program Files (x86)PostgreSQL8.2dataglobal. Then you should search for the folder name by that number under C:Program Files (x86)PostgreSQL8.2database. That is the content of the database.

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
senthilkumarisenthilkumari
Postgresql client mac best

Open pgAdmin and go to Properties for specific database. Find OID and then open directory

There should be your DB files.

Almir SarajčićAlmir Sarajčić
1,1552 gold badges12 silver badges18 bronze badges

Under my Linux installation, it's here: /var/lib/postgresql/8.x/

You can change it with initdb -D 'c:/mydb/'

trinth
3,1497 gold badges31 silver badges38 bronze badges
SadeghSadegh
5,9933 gold badges29 silver badges42 bronze badges

As suggested in 'PostgreSQL database default location on Linux', under Linux you can find out using the following command:

Community
Skippy le Grand GourouSkippy le Grand Gourou

The location of specific tables/indexes can be adjusted by TABLESPACEs:

the Tin Man
139k27 gold badges181 silver badges261 bronze badges
ymvymv

Postgres stores data in files in its data directory. Follow the steps below to go to a database and its files:

The database corresponding to a postgresql table file is a directory. The location of the entire data directory can be obtained by running SHOW data_directory. in a UNIX like OS (eg: Mac) /Library/PostgreSQL/9.4/dataGo inside the base folder in the data directory which has all the database folders: /Library/PostgreSQL/9.4/data/base

Find the database folder name by running (Gives an integer. This is the database folder name):

Find the table file name by running (Gives an integer. This is the file name):

This is a binary file. File details such as size and creation date time can be obtained as usual. For more info read this SO thread

Community
picmate 涅picmate 涅
2,0725 gold badges31 silver badges42 bronze badges

Everyone already answered but just for the latest updates. If you want to know where all the configuration files reside then run this command in the shell

Saad SaadiSaad Saadi

On Mac: /Library/PostgreSQL/9.0/data/base

The directory can't be entered, but you can look at the content via: sudo du -hc data

evgenievgeni
9653 gold badges16 silver badges27 bronze badges

I'd bet you're asking this question because you've tried pg_ctl start and received the following error:

Adware Removal Tool For Mac

pg_ctl: no database directory specified and environment variable PGDATA unset

Postgres Admin Tool Pgadmin

In other words, you're looking for the directory to put after -D in your pg_ctl start command.

In this case, the directory you're looking for contains these files.

You can locate it by locating any of the files and directories above using the search provided with your OS.

For example in my case (a HomeBrew install on Mac OS X), these files are located in /usr/local/var/postgres. To start the server I type:

... and it works.

xaggxagg

On Windows, the PGDATA directory that the PostgresSQL docs describe is at somewhere like C:Program FilesPostgreSQL8.1data. The data for a particular database is under (for example) C:Program FilesPostgreSQL8.1database100929, where I guess 100929 is the database number.

Ben HoytBen Hoyt
6,6664 gold badges44 silver badges78 bronze badges

Postgresql Mac Os

picmate's answer is right. on windows the main DB folder location is (at least on my installation)

and not in program files.

his 2 scripts, will give you the exact directory/file(s) you need:

mine is in datname 16393 and relfilenode 41603

k3nnk3nn

protected by QuentinMar 9 '12 at 7:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged postgresql or ask your own question.

Coments are closed