Skip to content

Instantly share code, notes, and snippets.

View w11th's full-sized avatar

Wenhui Wang w11th

  • Hangzhou, China
View GitHub Profile
@w11th
w11th / PostgreSQL_index_naming.rst
Created January 11, 2023 09:45 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
@w11th
w11th / surge.conf
Last active December 18, 2018 10:16
📦 Surge 安装步骤导览 | http://bit.ly/292EJz3
# 规则配置仅供参考,适用于 Surge iOS & Mac;
# 包含 Reject 规则,用于拦截广告、行为分析、数据统计
# 屏蔽部分运营商劫持网页弹出流量统计
# 部分特性可能仅适用于最新的 TestFlight 版本
# 参数说明 zhHans.conf.ini http://bit.ly/29kwXlZ
# https://gist.github.com/scomper/915b04a974f9e11952babfd0bbb241a8/raw/surge.conf
[General]
# warning, notify, info, verbose
loglevel = notify