postgresql

Error creating a spatial database using EXTENSIONS

主宰稳场 提交于 2021-02-10 09:42:52
问题 When running psql -d mydb -c "CREATE EXTENSION postgis;" I get the following error: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so, 10): Symbol not found: _sqlite3_column_table_name Referenced from: /usr/local/lib/libgdal.1.dylib Expected in: /usr/lib/libsqlite3.dylib in /usr/local/lib/libgdal.1.dylib STATEMENT: CREATE EXTENSION postgis; System: OS X 10.9.2 All libraries were installed

Error creating a spatial database using EXTENSIONS

时光总嘲笑我的痴心妄想 提交于 2021-02-10 09:42:27
问题 When running psql -d mydb -c "CREATE EXTENSION postgis;" I get the following error: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so, 10): Symbol not found: _sqlite3_column_table_name Referenced from: /usr/local/lib/libgdal.1.dylib Expected in: /usr/lib/libsqlite3.dylib in /usr/local/lib/libgdal.1.dylib STATEMENT: CREATE EXTENSION postgis; System: OS X 10.9.2 All libraries were installed

PostgreSQL server fails to start on ArchLinux: FATAL: could not create lockfile »/run/postgresql/.s.PGSQL.5432.lock«

送分小仙女□ 提交于 2021-02-10 09:20:51
问题 I am quite new in Arch and a total beginner in PostgreSQL, so this may be a very basic question. I installed postgresql 11.5-4 from extra and pgadmin 4 from AUR, both seem to be running well. I created a test DB with the following command: initdb -D /home/lg/test-db I got the answer: You can start the db-server using: pg_ctl -D /home/lg/test-db -l logdatei start I tried that and got: pg_ctl -D /home/lg/test-db -l logdatei start waiting for serer to start.... stopped pg_ctl: could not start

2018年终盘点:阿里云数据库RDS核心能力演进

空扰寡人 提交于 2021-02-10 08:56:13
摘要: 2018年云数据库RDS发展上,不但针对MySQL、SQL Server、PostgreSQL提供了适合个人入门用户的基础版产品,以实惠的价格普惠广大中小用户。更加入最新的MariaDB TX企业版,及大幅度提高PPAS的Oracle兼容性,从企业需求出发,重点在全生命周期、全链路安全、全链路监控、全方位运维、多引擎覆盖 5个方面进行发力,为企业用户提供更优质的云数据库服务。 云计算已经进入普及期,不少企业开始从自建数据中心转向云计算。在云计算资源的使用上,从最开始只是使用IaaS层基础资源,转向使用包括云数据库在内的各类PaaS资源。数据库是企业IT架构的核心部分,RDS关系型数据库服务已经成为企业重度依赖的云服务。 过去7年的持续发展,2018年阿里云首次进入Gartner的数据库魔力象限,能够入选Gartner,这是中国数据库厂商的一次突破。阿里云入围Gartner充分说明,在新一波技术浪潮之上进行创新,才可能做出突破。云数据库已经不仅仅是简单地完成数据库在云资源中的搭建,数据库曾经是IT系统中最昂贵的投入之一。对企业CXO们(CEO、CFO、CTO、CIO等)而言,更加灵活的生命周期管理,可以实现成本的合理投入及灵活管理。对DBA技术人员而言,更高的安全性、更全面的监控能力、更便捷的运维方式,将改变DBA在企业的工作模式及地位。 从企业管理者及DBA的角度

fixed width data into postgres

ⅰ亾dé卋堺 提交于 2021-02-10 08:33:48
问题 Looking for good way to load FIXED-Width data into postgres tables. I do this is sas and python not postgres. I guess there is not a native method. The files are a few GB. The one way I have seen does not work on my file for some reason (possibly memory issues). There you load as one large column and then parse into tables. I can use psycopy2 but because of memory issues would rather not. Any ideas or tools that work. Does pgloader work well or are there native methods? http://www

fixed width data into postgres

爱⌒轻易说出口 提交于 2021-02-10 08:33:32
问题 Looking for good way to load FIXED-Width data into postgres tables. I do this is sas and python not postgres. I guess there is not a native method. The files are a few GB. The one way I have seen does not work on my file for some reason (possibly memory issues). There you load as one large column and then parse into tables. I can use psycopy2 but because of memory issues would rather not. Any ideas or tools that work. Does pgloader work well or are there native methods? http://www

fixed width data into postgres

白昼怎懂夜的黑 提交于 2021-02-10 08:33:17
问题 Looking for good way to load FIXED-Width data into postgres tables. I do this is sas and python not postgres. I guess there is not a native method. The files are a few GB. The one way I have seen does not work on my file for some reason (possibly memory issues). There you load as one large column and then parse into tables. I can use psycopy2 but because of memory issues would rather not. Any ideas or tools that work. Does pgloader work well or are there native methods? http://www

In Postgresql how to order by date while keeping custom date format

给你一囗甜甜゛ 提交于 2021-02-10 08:17:06
问题 The issue is that using to_char will turn order by date into order by ascii. Example: SELECT foo, bar FROM baz ORDER BY foo; I would like to format foo using to_char, but doing this will affect the order: SELECT to_char(foo,'dd/MM/yyyy') as foo, bar FROM baz ORDER BY foo; Because foo now is of type text. There is a way to correctly do this? Or only in the code? 回答1: You can use a different alias for the formatted column: SELECT to_char(foo,'dd/MM/yyyy') as formatted_foo, bar FROM baz ORDER BY

In Postgresql how to order by date while keeping custom date format

孤人 提交于 2021-02-10 08:15:22
问题 The issue is that using to_char will turn order by date into order by ascii. Example: SELECT foo, bar FROM baz ORDER BY foo; I would like to format foo using to_char, but doing this will affect the order: SELECT to_char(foo,'dd/MM/yyyy') as foo, bar FROM baz ORDER BY foo; Because foo now is of type text. There is a way to correctly do this? Or only in the code? 回答1: You can use a different alias for the formatted column: SELECT to_char(foo,'dd/MM/yyyy') as formatted_foo, bar FROM baz ORDER BY

In Postgresql how to order by date while keeping custom date format

送分小仙女□ 提交于 2021-02-10 08:15:18
问题 The issue is that using to_char will turn order by date into order by ascii. Example: SELECT foo, bar FROM baz ORDER BY foo; I would like to format foo using to_char, but doing this will affect the order: SELECT to_char(foo,'dd/MM/yyyy') as foo, bar FROM baz ORDER BY foo; Because foo now is of type text. There is a way to correctly do this? Or only in the code? 回答1: You can use a different alias for the formatted column: SELECT to_char(foo,'dd/MM/yyyy') as formatted_foo, bar FROM baz ORDER BY