Skip to content

Danang Setya Pramana - Working Memory

This is my working memory when i forgot some command and some code for my work

Danang Setya Pramana - Working Memory

This is my working memory when i forgot some command and some code for my work

  • Home
    • Home
    • postgreSql
postgreSql

postgresql crash on mac m4

danang setya pramana September 4, 2026 0 Comments

brew services start postgresql@18 issue Is another postmaster (PID 787) running in data directory "/opt/homebrew/var/postgresql@18 kill -9 787 rm /opt/homebrew/var/postgresql@18/postmaster.pid brew services restart postgresql@18 and postgresql start normally

postgreSql

change ,alter owner table postgres

danang setya pramana June 30, 2026 0 Comments

SELECT 'ALTER TABLE ' || quote_ident(schemaname) || '.' || quote_ident(tablename) || ' OWNER TO nama_user_baru;' FROM pg_tables WHERE schemaname = 'public';   copy output ke psql kembali

postgreSql

allow connection client remote postgresql on remote

danang setya pramana January 15, 2026 0 Comments

edit pg_hba.conf and add host    all             all             192.168.1.0/24          scram-sha-256 after that enter on…

postgreSql

Backup & Restore Postgre SQL Database

danang setya pramana January 10, 2026 0 Comments

pg_dump and pg_restore are command-line utilities for backing up and restoring PostgreSQL databases. The tar format is one of the non-plain text archive formats that pg_dump can produce and which pg_restore is designed to handle. Backing Up with pg_dump (TAR format) …

postgreSql

change all tables owner to specified user

danang setya pramana January 7, 2026 0 Comments

first use select to show all tables from old owner SELECT tablename, schemaname,tableowner FROM pg_tables WHERE schemaname = 'public' AND tableowner = 'oldowner'; and make script for looping alter table…

postgreSql

To drop all primary key constraints in the public schema of a PostgreSQL database

danang setya pramana January 7, 2026 0 Comments

DO $$ DECLARE r RECORD; BEGIN -- Select all primary key constraints in the 'public' schema FOR r IN ( SELECT table_name, constraint_name FROM information_schema.table_constraints WHERE constraint_type = 'PRIMARY KEY'…

postgreSql

strict change column type table postgre from string to int

danang setya pramana December 29, 2025 0 Comments

ALTER TABLE table_name ALTER COLUMN column_name TYPE BIGINT USING (column_name::bigint);

drizzle postgreSql

drizzle init for postgres nextjs

danang setya pramana December 29, 2025 0 Comments

sebelumnya buat .env dan isi connection string untuk postgre POSTGRE_URL="postgresql://postgres:userpassword@localhost:5432/dbname" buat drizzle config import { defineConfig } from "drizzle-kit"; export default defineConfig({ schema: "./src/lib/db/postgresql/schema.ts", out: "./src/lib/drizzle/postgresql", dialect: "postgresql", dbCredentials: {…

postgreSql

migrate database from mysql to postgre using docker pg_loader

danang setya pramana December 29, 2025 0 Comments

karena saya menggunakan jendela saat ini , terpaksa saya menggunakan pg_loader dari docker , pertama ambil packagenya dulu dari remote milik dimitri docker pull ghcr.io/dimitri/pgloader:latest pertama pastikan kalian punya akses…

postgreSql

postgre query grant & alter

danang setya pramana December 22, 2025 0 Comments

mengubah privileges user untuk semua tables GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO user; ubah nama field di dalam table ALTER nama_table RENAME COLUMN nama_lama TO nama_baru;…

Posts pagination

1 2

Next Page »

Recent Posts

  • postgresql crash on mac m4
  • mikrotik winbox dude backup restore
  • list adb command
  • install using adb on macbook apple chip
  • tsconfig.json generate using

Recent Comments

No comments to show.

Archives

  • September 2026
  • July 2026
  • June 2026
  • February 2026
  • January 2026
  • December 2025
  • February 2025
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • February 2024
  • November 2023
  • July 2023
  • June 2023

Categories

  • cli
  • cli
  • Codeigniter 4
  • docker
  • Dockerfile
  • drizzle
  • dude
  • Flutter
  • git
  • git branch
  • git clone
  • git push
  • git rm
  • golang
  • IOS
  • Iseng-iseng
  • linux
  • mikrotik
  • Mongodb
  • Mysql
  • Next Auth
  • Next JS
  • nginx
  • PHP
  • Phpunit
  • pm2
  • postgreSql
  • prisma
  • private repo
  • python
  • React
  • React Native
  • restore
  • rm
  • screen
  • UI
  • windows

You Missed

postgreSql

postgresql crash on mac m4

dude mikrotik

mikrotik winbox dude backup restore

Iseng-iseng

list adb command

Iseng-iseng

install using adb on macbook apple chip

Danang Setya Pramana – Working Memory

This is my working memory when i forgot some command and some code for my work

Copyright © All rights reserved | Blogus by Themeansar.