0

I'm trying to create a PostgreSQL database through PowerShell with collate option as C to address sorting order of fields with special characters using below command:

createdb -U postgres -h localhost -p 5432 -O apm apm -l 'C' -T template0

But seeing below error:

createdb: too many command-line arguments (first is "C")

Postgres version: 9.6.6
OS: Windows 10

Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
Vikram
  • 347
  • 1
  • 3
  • 8

1 Answers1

0

Give this a try:

createdb -U postgres -h localhost -p 5432 -O apm apm -lc-collate='C' -T template0
Tripp Kinetics
  • 5,178
  • 2
  • 23
  • 37