官术网_书友最值得收藏!

  • Mastering PostGIS
  • Dominik Mikiewicz Michal Mackiewicz Tomasz Nycz
  • 199字
  • 2021-07-02 22:52:20

Setting up the database

All the examples in this chapter use a database named mastering_postgis. This database has been created off the postgis template.

The PgSQL on my dev machine listens on port 5434, which is not the default port for the Postgres database (default is 5432); so when using a default DB setup, you may have to adjust some of the examples a bit.

If you need to change the port your db listens on, you should locate the db data directory, where you will find a postgresql.conf file. This is a text file, so you can edit it with an ordinary text editor.
In order to adjust the port, find a port configuration in the Connections and Authentication section.

Schemas are a great way of managing the data and splitting it into meaningful collections. In most scenarios, one will have some production data, archive data, incoming data, and so on sensibly kept in separate schemas. Using additional schemas will depend on your requirements, but we do encourage you to introduce using schemas into your daily practice if you do not yet do so. The following examples import the data into tables defined in the data_import schema.

主站蜘蛛池模板: 招远市| 阿拉善右旗| 五常市| 班戈县| 湘潭市| 香河县| 招远市| 灵武市| 永善县| 齐河县| 白银市| 南乐县| 大关县| 明光市| 景洪市| 徐水县| 高州市| 剑川县| 定日县| 三都| 泗阳县| 镇平县| 凤凰县| 高阳县| 金湖县| 云龙县| 孝义市| 岳阳县| 金湖县| 农安县| 大石桥市| 孙吴县| 遂宁市| 横峰县| 二手房| 溆浦县| 象州县| 苏尼特左旗| 米脂县| 金湖县| 洛阳市|